mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for saving invoice. (#3015)
* update company settings and OpenAPI definitions * Fixes for tests * Add extra variables to company settings * Track signup platform when new account signup processed * Fixes for invoice save
This commit is contained in:
parent
a60613aa26
commit
8e3e5a2cb2
@ -70,13 +70,13 @@ class Number
|
||||
$swapSymbol = $currency->swap_currency_symbol;
|
||||
|
||||
/* Country settings override client settings */
|
||||
if ($client->country->thousand_separator)
|
||||
if (property_exists($client->country), 'thousand_separator')
|
||||
$thousand = $client->country->thousand_separator;
|
||||
|
||||
if ($client->country->decimal_separator)
|
||||
if (property_exists($client->country), 'decimal_separator')
|
||||
$decimal = $client->country->decimal_separator;
|
||||
|
||||
if($client->country->swap_currency_symbol)
|
||||
|
||||
if(property_exists($client->country), 'swap_currency_symbol')
|
||||
$swapSymbol = $client->country->swap_currency_symbol;
|
||||
|
||||
$value = number_format($value, $precision, $decimal, $thousand);
|
||||
|
Loading…
x
Reference in New Issue
Block a user