1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fixes for how to display CHF currency

This commit is contained in:
David Bomba 2020-12-09 07:35:26 +11:00
parent d8498bdd03
commit dc2e5706c6

View File

@ -103,7 +103,9 @@ class Number
$value = number_format($value, $precision, $decimal, $thousand);
$symbol = $currency->symbol;
if ($client->getSetting('show_currency_code') === true) {
if ($client->getSetting('show_currency_code') === true && $currency->code == 'CHF'){
return "{$code} {$value}";
} elseif ($client->getSetting('show_currency_code') === true) {
return "{$value} {$code}";
} elseif ($swapSymbol) {
return "{$value} ".trim($symbol);