Browse Source

Merge pull request #79 from VoedselCoop/8.0-pos_pricelist_round_unit_price

[FIX] Round unit price
pull/86/head
Pedro M. Baeza 9 years ago
parent
commit
0852cc7849
  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