OTC workflow should commit charge and payment in a single transaction
Description
The OTC workflow saves the act.customerAccountChargeCounter and act.customerAccountPayment acts in separate transactions. The act.customerAccountChargeCounter is saved with POSTED status. If the workflow is cancelled whilst editing the act.customerAccountPayment, the act.customerAccountChargeCounter is deleted, despite the fact that it is POSTED. This could result in the OTC account having an incorrect balance, as other OTC payments have been allocated to it.
This should change so that both the charge and payment are saved within the same transaction, after editing has completed.
Environment
None
Activity
Tim Anderson October 4, 2013 at 7:03 PM
Editing of the charge and payment status is now suppressed and the charge and payment are now posted within a single transaction.
The OTC workflow saves the act.customerAccountChargeCounter and act.customerAccountPayment acts in separate transactions.
The act.customerAccountChargeCounter is saved with POSTED status.
If the workflow is cancelled whilst editing the act.customerAccountPayment, the act.customerAccountChargeCounter is deleted, despite the fact that it is POSTED.
This could result in the OTC account having an incorrect balance, as other OTC payments have been allocated to it.
This should change so that both the charge and payment are saved within the same transaction, after editing has completed.