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

Discount financial trxn records not being created

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.7.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      On tidying up some payment code I came to the conclusion that the fix implemented in CRM-11124 is not working. There should be some financial rows created to reflect a discount and they don't seem to be there.

      This line is supposed to retrieve an account and that is not happening.

      $contributionParams['trxnParams']['from_financial_account_id'] = CRM_Contribute_PseudoConstant::financialAccountType(
      $contributionParams['contribution']->financial_type_id, $relationTypeId);

        Attachments

          Activity

            People

            • Assignee:
              joemurray Joe Murray
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: