mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 19:24:40 -04:00
Merge pull request #4542 from beganovich/v5-fixes-for-client-number-formatting
(v5) Fixes for client number formatting
This commit is contained in:
commit
4b55a69cd2
@ -102,15 +102,15 @@ class Number
|
|||||||
$swapSymbol = $currency->swap_currency_symbol;
|
$swapSymbol = $currency->swap_currency_symbol;
|
||||||
|
|
||||||
/* Country settings override client settings */
|
/* Country settings override client settings */
|
||||||
if (isset($client->country->thousand_separator)) {
|
if (isset($client->country->thousand_separator) && strlen($client->country->thousand_separator) >= 1) {
|
||||||
$thousand = $client->country->thousand_separator;
|
$thousand = $client->country->thousand_separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($client->country->decimal_separator)) {
|
if (isset($client->country->decimal_separator) && strlen($client->country->decimal_separator) >= 1) {
|
||||||
$decimal = $client->country->decimal_separator;
|
$decimal = $client->country->decimal_separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($client->country->swap_currency_symbol)) {
|
if (isset($client->country->swap_currency_symbol) && strlen($client->country->swap_currency_symbol) >= 1) {
|
||||||
$swapSymbol = $client->country->swap_currency_symbol;
|
$swapSymbol = $client->country->swap_currency_symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user