[FIX] point_of_sale: use the same rounding sequence as the backend
Conflicts: addons/point_of_sale/static/src/js/models.js
This commit is contained in:
parent
4647f896a4
commit
aab3d9f4b4
|
@ -818,8 +818,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
|
|||
},
|
||||
get_base_price: function(){
|
||||
var rounding = this.pos.currency.rounding;
|
||||
var price = round_pr(round_pr(this.get_unit_price() * this.get_quantity(),rounding) * (1- this.get_discount()/100.0),rounding);
|
||||
return price;
|
||||
return round_pr(this.get_unit_price() * this.get_quantity() * (1 - this.get_discount()/100), rounding);
|
||||
},
|
||||
get_display_price: function(){
|
||||
return this.get_base_price();
|
||||
|
|
Loading…
Reference in New Issue