$this->_contributionId = $this->_id;
}
- $paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_id, $this->_component, FALSE, TRUE);
$paymentAmt = $this->getAmountDue();
- $this->_amtPaid = $paymentDetails['paid'];
- $this->_amtTotal = $paymentDetails['total'];
-
if ($paymentAmt >= 0) {
$this->_owed = $paymentAmt;
}
if (!empty($params['contribution_id'])) {
$this->_contributionId = $params['contribution_id'];
- $paymentDetails = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_contributionId, $entityType, FALSE, TRUE);
-
$paymentAmount = $this->getAmountDue();
- $this->_amtPaid = $paymentDetails['paid'];
- $this->_amtTotal = $paymentDetails['total'];
if ($paymentAmount > 0) {
$this->_owed = $paymentAmount;