3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
21 * Format the given monetary amount (and currency) for display
23 * @param float $amount
24 * The monetary amount up for display.
25 * @param string $currency
26 * The (optional) currency.
29 * @param bool $onlyNumber
32 * formatted monetary amount
34 function smarty_modifier_crmMoney($amount, $currency = NULL, $format = NULL, $onlyNumber = FALSE) {
35 return CRM_Utils_Money
::format($amount, $currency, $format, $onlyNumber);