mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix qty precision
This commit is contained in:
parent
022559d830
commit
3875294b7a
@ -122,7 +122,10 @@
|
|||||||
decorator = '{{ Session::get(SESSION_CURRENCY_DECORATOR, CURRENCY_DECORATOR_SYMBOL) }}';
|
decorator = '{{ Session::get(SESSION_CURRENCY_DECORATOR, CURRENCY_DECORATOR_SYMBOL) }}';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!precision) {
|
if (decorator == 'none') {
|
||||||
|
var parts = (value + '').split('.');
|
||||||
|
precision = parts.length > 1 ? Math.min(4, parts[1].length) : 0;
|
||||||
|
} else if (!precision) {
|
||||||
precision = currency.precision;
|
precision = currency.precision;
|
||||||
} else if (currency.precision == 0) {
|
} else if (currency.precision == 0) {
|
||||||
precision = 0;
|
precision = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user