Fix qty precision
This commit is contained in:
parent
fa6ac15f5a
commit
d6efea0080
1 changed files with 4 additions and 1 deletions
|
|
@ -122,7 +122,10 @@
|
|||
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;
|
||||
} else if (currency.precision == 0) {
|
||||
precision = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue