Merge pull request #4448 from turbo124/v5-develop

Fixes for how to display CHF currency
This commit is contained in:
David Bomba 2020-12-09 07:36:24 +11:00 committed by GitHub
commit 7e32c46643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);