Not possible to update trxn_id/check number of main contribution?
Usecase - A user donated via PayPal. When the payment was recorded, the transaction ID was entered incorrectly. I went in to edit and correct the Transaction ID, and when I Saved the record, it repeated the Transaction number. I tried again and it repeated again. It should only be there only once.
To replicate via backend-
- Create a contribution of $100 with trxn_id = A123.
- View the contribution
- Click on Edit Payment icon and update the trxn_id to B123.
- Save. The trxn_id is appended to the previous id instead of updating the complete value.
The same thing happens with check number field. Looking at the test added at https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/CRM/Financial/Form/PaymentEditTest.php#L127, it seems this is an expected behavior? Is there any way to remove the incorrect trxn id present on the main contribution?
ping @eileen @monish.deb