From: jitendrapurohit Date: Fri, 10 Apr 2015 07:30:55 +0000 (+0530) Subject: CRM-16250 - Tax Invoice CIVIevent Registration Not working for Multiple Registration X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0977cd6ed8bb9d4d1fad04e2c8397acfe17ab1b1;p=civicrm-core.git CRM-16250 - Tax Invoice CIVIevent Registration Not working for Multiple Registration --- diff --git a/CRM/Price/BAO/LineItem.php b/CRM/Price/BAO/LineItem.php index 0f3662ce3f..c29603b4c7 100644 --- a/CRM/Price/BAO/LineItem.php +++ b/CRM/Price/BAO/LineItem.php @@ -187,6 +187,13 @@ AND li.entity_id = {$entityId} $whereClause = " WHERE %2.id = %1"; + if ($entity == 'participant') { + $additionalParticipantIDs = CRM_Event_BAO_Participant::getAdditionalParticipantIds($entityId); + if (!empty($additionalParticipantIDs)) { + $whereClause = "WHERE %2.id IN (%1, ". implode(', ', $additionalParticipantIDs). ")"; + } + } + $orderByClause = " ORDER BY pf.weight, pfv.weight"; if ($isQuick) {