CRM-14881 Cannot edit contribution created by authorize.net recurring contribution

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.5
    • Fix Version/s: 4.5
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      When editing a contribution that was created as a authorize.net recurring contribution, you will get the error:

      The sum of fee amount and net amount must be equal to total amount

      The Contribution code enforces this rule only when the fee amount, net amount and total amount are all not empty.

      However, the authorize.net recurring contribution code will insert a default fee amount and net amount of "0.00" - which is not empty.

      There's a forum post here on the topic:

      http://forum.civicrm.org/index.php/topic,31948.0.html

        Attachments

          Activity

          [CRM-14881] Cannot edit contribution created by authorize.net recurring contribution
          David Greenberg added a comment -

          If you can provide a patch we can consider for 4.5

          Jamie McClelland added a comment -

          Here's a PR:

          https://github.com/civicrm/civicrm-core/pull/3586

          I tried to fix both problems: auth.net IPN shouldn't create values of 0.00 (they should be NULL) and if the check encounters a value of 0.00 it should treat it the same as NULL.

          The code is a little bit convoluted in my effort to avoid a giant IF statement.

          David Greenberg added a comment -

          PR reviewed by myself and Kurund. Looks good - thx!

            People

            • Assignee:
              Jamie McClelland
              Reporter:
              Jamie McClelland

              Dates

              • Created:
                Updated:
                Resolved: