Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11709

incorrect financial_trxn when two changes made at once

    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
    • Labels:
      None

      Description

      Create a pay later donation with payment instrument of check. Imagine the check is not sent in and they call and get a credit card number instead which they process manually on the POS terminal. They enter this in CiviCRM by Editting the contribution, changing status from pending to completed, and change the payment instrument from Check to Credit card.

      This results in 3 financial_trxn:
      a) from=null, to=7 (AR)
      b) from=7, to=12 (payment processor)
      c) from=6 (deposit bank account), to=12

      The proper way to handle this is not to create record c) since we know we are transitioning from AR to paid, and therefore we should ignore any value payment instrument had while status was pending.

      (dgg / kurund: If despite this advice it is necessary to create a third transaction to keep the code simpler, then the transactions must be b) from=7, to=6, c) from=6, to=12.)

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: