--CRM-16460, used money format function to format the total amount
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 5 May 2015 19:45:37 +0000 (01:15 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Tue, 5 May 2015 19:45:37 +0000 (01:15 +0530)
CRM/Price/BAO/PriceSet.php

index 6cd8379ee64b76c0a20bfd9026f8e6be9c14b6c1..1e7647c3d86a0c725ff27759d55f2a906a462ef4 100644 (file)
@@ -892,7 +892,7 @@ WHERE  id = %1";
       $displayParticipantCount = ' Participant Count -' . $totalParticipant;
     }
     $params['amount_level'] = CRM_Core_DAO::VALUE_SEPARATOR . implode(CRM_Core_DAO::VALUE_SEPARATOR, $amount_level) . $displayParticipantCount . CRM_Core_DAO::VALUE_SEPARATOR;
-    $params['amount'] = $totalPrice;
+    $params['amount'] = CRM_Utils_Money::format($totalPrice, NULL, NULL, TRUE);
     $params['tax_amount'] = $totalTax;
     if ($component) {
       foreach ($autoRenew as $dontCare => $eachAmount) {