CRM-21632 - {membership.fee} prints out in documents with 9 decimal places
authoryashodha <yashodha@cividesk.com>
Thu, 24 May 2018 14:44:35 +0000 (20:14 +0530)
committeryashodha <yashodha@cividesk.com>
Thu, 24 May 2018 14:44:35 +0000 (20:14 +0530)
CRM/Utils/Token.php

index d879d6f697bb4aebaae1243eda95cae331773538..e3bdcc102b9b02525450be95701a771271490733 100644 (file)
@@ -1762,6 +1762,7 @@ class CRM_Utils_Token {
               'id' => $membership['membership_type_id'],
               'return' => 'minimum_fee',
             ));
+          $value = CRM_Utils_Money::format($value, NULL, NULL, TRUE);
         }
         catch (CiviCRM_API3_Exception $e) {
           // we can anticipate we will get an error if the minimum fee is set to 'NULL' because of the way the