All tran_item records for normal paid transactions have a
status of 1 = suspended.
Cause:
EjItem.engage() - about line 254 has this call:
transItem().setState(Item.PAID);
Presumably, this should be:
transItem().setState(TransItem.PAID);
Solution:
Make the change as above.
(= TransItem.SUSPEND"). the class
Logged In: YES
user_id=972075
Of course, if you makethe change above, suspended items
will also be entered as being PAID.
The saved trans_* records are not being re-used. So, if you
add a PK to the (trans_id, seq_no) of the trans_* tables,
you'll get a unique key insert violation after recalling and
completing a saved transaction.
Presumably, saved transaction lines should be overwritten
when completed.