CRM-16250 - Tax Invoice CIVIevent Registration Not working for Multiple Registration
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 10 Apr 2015 07:30:55 +0000 (13:00 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Fri, 10 Apr 2015 07:30:55 +0000 (13:00 +0530)
CRM/Price/BAO/LineItem.php

index 0f3662ce3fdee2d3fa81c25872aaf41ba630d347..c29603b4c78bdb6556b220ade36f5b6f6f9552ae 100644 (file)
@@ -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) {