[FIX] point_of_sale: bug in decimal.precision lookup

This commit is contained in:
Fabien Meghazi
2016-09-08 15:34:34 +02:00
parent 0eafeab183
commit ff4549ec6a
@@ -38,7 +38,7 @@ var PosBaseWidget = Widget.extend({
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];
}