Skip to content
Snippets Groups Projects
Verified Commit f9ae0e75 authored by Andrei Mondoc's avatar Andrei Mondoc Committed by Kevin Cristiano
Browse files

retrieve LineItems by contributionID regardless of component

parent 53801a71
Branches
No related tags found
No related merge requests found
...@@ -298,13 +298,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task { ...@@ -298,13 +298,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
$invoiceDate = date("F j, Y"); $invoiceDate = date("F j, Y");
$dueDate = date('F j, Y', strtotime($contributionReceiveDate . "+" . $prefixValue['due_date'] . "" . $prefixValue['due_date_period'])); $dueDate = date('F j, Y', strtotime($contributionReceiveDate . "+" . $prefixValue['due_date'] . "" . $prefixValue['due_date_period']));
if ($input['component'] == 'contribute') { $lineItem = CRM_Price_BAO_LineItem::getLineItemsByContributionID($contribID);
$lineItem = CRM_Price_BAO_LineItem::getLineItemsByContributionID($contribID);
}
else {
$eid = $contribution->_relatedObjects['participant']->id;
$lineItem = CRM_Price_BAO_LineItem::getLineItems($eid, 'participant', NULL, TRUE, FALSE, TRUE);
}
$resultPayments = civicrm_api3('Payment', 'get', array( $resultPayments = civicrm_api3('Payment', 'get', array(
'sequential' => 1, 'sequential' => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment