CRM-19585, minor fix
authorPradeep Nayak <pradpnayak@gmail.com>
Fri, 30 Dec 2016 22:02:54 +0000 (03:32 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Tue, 3 Jan 2017 11:57:51 +0000 (17:27 +0530)
----------------------------------------
* CRM-19585: Sales tax issue
  https://issues.civicrm.org/jira/browse/CRM-19585

CRM/Contribute/BAO/Contribution.php

index 66b1529e95b5393b5b538f4449740bd0026f63f8..97ecd39a2cfe04fbada860c294db5b53bb18e7fd 100644 (file)
@@ -3620,7 +3620,7 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac
         'total_amount' => $trxn->total_amount,
         'contribution_id' => $params['contribution']->id,
       );
-      self::assignProportionalLineItems($trxnParams, $trxn->id, $params['contribution']->total_amount);
+      self::assignProportionalLineItems($trxnParams, $trxn->id, $params['prevContribution']->total_amount);
     }
     CRM_Core_BAO_FinancialTrxn::createDeferredTrxn(CRM_Utils_Array::value('line_item', $params), $params['contribution'], TRUE, $context);
   }