Browse Source

[FIX] pos_pricelist, format_pr error when precision undefined

pull/111/head
Ismael Calvo 8 years ago
parent
commit
3e87f0a274
  1. 2
      pos_pricelist/static/src/js/widgets.js

2
pos_pricelist/static/src/js/widgets.js

@ -72,7 +72,7 @@ function pos_pricelist_widgets(instance, module) {
var currency = (this.pos && this.pos.currency) ? this.pos.currency : {symbol:'$', position: 'after', rounding: 0.01, decimals: 2};
var decimals = currency.decimals;
if (precision && (typeof this.pos.dp[precision]) !== undefined) {
if (precision && this.pos.dp[precision] !== undefined) {
decimals = this.pos.dp[precision];
}

Loading…
Cancel
Save