VAT-434 Changes for accounting export for offline event with quick config
authordpradeep <pradeep.dorugade@webaccess.co.in>
Thu, 7 Aug 2014 04:54:41 +0000 (10:24 +0530)
committerdpradeep <pradeep.dorugade@webaccess.co.in>
Thu, 7 Aug 2014 04:54:41 +0000 (10:24 +0530)
CRM/Event/Form/Participant.php

index fc917797609529fefb1031586f35b6b0938cd905..d7b8649eda891add6480b274f89b7deac958a89b 100644 (file)
@@ -1456,6 +1456,7 @@ class CRM_Event_Form_Participant extends CRM_Contact_Form_Task {
                 $line['unit_price'] = $line['line_total'] = $params['total_amount'];
                 if (!empty($params['tax_amount'])) {
                   $line['unit_price'] = $line['unit_price'] - $params['tax_amount'];
+                  $line['line_total'] = $line['line_total'] - $params['tax_amount'];
                 }
               }
               $lineItem[$this->_priceSetId][$lineKey] = $line;