Browse Source

Merge pull request #111 from factorlibre/8.0-pos_pricelist_format_pr

[FIX] pos_pricelist, format_pr error when precision undefined
pull/114/head
Rafael Blasco 8 years ago
committed by GitHub
parent
commit
f0c5621f80
  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 currency = (this.pos && this.pos.currency) ? this.pos.currency : {symbol:'$', position: 'after', rounding: 0.01, decimals: 2};
var decimals = currency.decimals; var decimals = currency.decimals;
if (precision && (typeof this.pos.dp[precision]) !== undefined) {
if (precision && this.pos.dp[precision] !== undefined) {
decimals = this.pos.dp[precision]; decimals = this.pos.dp[precision];
} }

Loading…
Cancel
Save