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

Contribution BAO should ensure net_amount is set

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.7
    • Fix Version/s: 4.6
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Following on from

      https://issues.civicrm.org/jira/browse/CRM-14930

      The BAO should ensure that if it is to create a contribution & net_amount or fee_amount is not set it should calculate them from the total_amount - fee_amount logic.

      Not sure this is required on update - we could retrieve those values & check if total_amount is passed in - but that would only be relevant if amount is being changed & there might be other financial implications so let's leave out of scope

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                monish.deb Monish Deb
                Reporter:
                eileen Eileen McNaughton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: