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

Contribution Create api must create required financial item and financial transaction records by default

    Details

      Description

      Currently this api is NOT creating all the minimally required records for a 'valid' contribution which are:

      • contribution (yes)
      • line_item (yes - but pretty sure that the required line_item.financial_type_id is not being populated and it should be)
      • financial_item (NO)
      • entity_financial_item (NO)
      • financial_trxn (NO, needed if status is 'Completed').
      • entity_financial_trxn (NO, needed if status is 'Completed').

      We require a financial_type_id for civicrm_api3_contribution_create. This should allow us to create the minimally required financial records when a contribution is created.

      NOTE: We need to discuss UPDATE handling (e.g. call to contribution_create with an ID and changes to amount, financial type, etc.).

      Update workflow is mentioned here: http://wiki.civicrm.org/confluence/display/CRM/CiviAccounts+4.3+Data+Flow#CiviAccounts4.3DataFlow-Updatecontribution

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pradeep.nayak Pradeep Nayak
                Reporter:
                dgg David Greenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: