Merge pull request #3220 from odoo-dev/7.0-opw-615322-rgo

[FIX] point_of_sale: fixed rounding issue for pos order when discount ad...
This commit is contained in:
Frédéric Van der Essen 2014-11-12 17:58:07 +01:00
commit 16900c8ac4
1 changed files with 1 additions and 1 deletions

View File

@ -494,7 +494,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
get_all_prices: function(){
var self = this;
var currency_rounding = this.pos.get('currency').rounding;
var base = round_pr(this.get_quantity() * this.get_unit_price() * (1.0 - (this.get_discount() / 100.0)), currency_rounding);
var base = round_pr(round_pr(this.get_quantity() * this.get_unit_price(), currency_rounding) * (1.0 - (this.get_discount() / 100.0)), currency_rounding);
var totalTax = base;
var totalNoTax = base;