From 3e87f0a2743942f080174677f8b61efd5e938a29 Mon Sep 17 00:00:00 2001 From: Ismael Calvo Date: Thu, 28 Jul 2016 12:46:13 +0200 Subject: [PATCH] [FIX] pos_pricelist, format_pr error when precision undefined --- pos_pricelist/static/src/js/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos_pricelist/static/src/js/widgets.js b/pos_pricelist/static/src/js/widgets.js index 338a4546..5389e658 100644 --- a/pos_pricelist/static/src/js/widgets.js +++ b/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]; }