[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:
Frédéric van der Essen 2014-12-26 15:36:06 +01:00
parent 4647f896a4
commit aab3d9f4b4
1 changed files with 1 additions and 2 deletions

View File

@ -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();