From daec3f08534e62da69fcc03cff29282ebba7587d Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 24 May 2018 20:14:35 +0530 Subject: [PATCH] CRM-21632 - {membership.fee} prints out in documents with 9 decimal places --- CRM/Utils/Token.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index d879d6f697..e3bdcc102b 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -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 -- 2.25.1