function _invoice_format_money in Invoice 7
Same name and namespace in other branches
- 6 invoice_helpers.inc \_invoice_format_money()
Returns a number in money format according to the locale set on the invoice settings page
Parameters
mixed $number:
integer $precision:
Return value
mixed
2 calls to _invoice_format_money()
- invoice_load in ./
invoice.module - Implements hook_load()
- _invoice_round_and_format_money in ./
invoice_helpers.inc - Returns a rounded and formatted number according to the locale set on the invoice settings page
File
- ./
invoice_helpers.inc, line 268 - Invoice module
Code
function _invoice_format_money($number, $precision) {
if (!function_exists('money_format')) {
$formatted_number = _invoice_money_format('%.' . $precision . 'n', $number);
}
else {
$formatted_number = money_format('%.' . $precision . 'n', $number);
}
return $formatted_number;
}