Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.3.0
-
Component/s: Accounting Integration, CiviEvent
-
Labels:None
Description
Using Find Participants -> Update Participant Status task ... for Pay Later event registrations we transition the associated contribution status from Pending (Pay Later) to Completed and we properly insert a new financial_trxn row for this. However, the to_financial_account_id is not being set for this financial_trxn.
Since the form does NOT contain a payment instrument field - we need to use the default asset financial account in order to set the to_financial_account_id (same logic as back-office contribution form when user does NOT select payment_instrument).
To recreate:
- use online registration to register for sample event with 'pay later'
- from Find Participants, status = Pending (pay later) - select the participant and select task 'Change Participant Status'
- change status to 'Attended' and click Update Participants
Contribution status will change to Completed (correctly).
Check financial_trxn table, you'll see two rows. One for the pay-later (Accounts Receivable) transaction, and second one for the completed payment.
Please check if other 'batch update' flows which use the transition status approach might also have this same issue.