Browse Source

[FIX] Round unit price

pull/79/head
Stefan Rijnhart 9 years ago
parent
commit
a4b26f7c4e
  1. 5
      pos_pricelist/static/src/js/models.js

5
pos_pricelist/static/src/js/models.js

@ -148,7 +148,7 @@ function pos_pricelist_models(instance, module) {
db, product, partner, qty
);
if (price !== false) {
this.price = price;
this.price = round_di(parseFloat(price) || 0, this.pos.dp['Product Price']);
}
}
},
@ -179,8 +179,7 @@ function pos_pricelist_models(instance, module) {
the unit price of the previous quantity, to preserve manually
entered prices as much as possible. */
if (price !== false && price !== old_price) {
this.price = price;
this.trigger('change', this);
this.set_unit_price(price);
}
},
/**

Loading…
Cancel
Save