[FIX] point of sale: tax fixed

In backend, the method "_unit_compute" doesn't round the fixed tax amount
before adding to "cur_price_unit" in the case "tax.include_base_amount".

opw:644421
This commit is contained in:
Goffin Simon 2015-07-15 10:29:41 +02:00
parent d4cc447427
commit 569d051f0b
1 changed files with 2 additions and 2 deletions

View File

@ -872,7 +872,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
data = {amount:tmp, price_include:true, id: tax.id};
res.push(data);
} else if (tax.type === "fixed") {
tmp = round_pr(tax.amount * self.get_quantity(),currency_rounding);
tmp = tax.amount * self.get_quantity();
data = {amount:tmp, price_include:true, id: tax.id};
res.push(data);
} else {
@ -884,7 +884,7 @@ function openerp_pos_models(instance, module){ //module is instance.point_of_sal
data = {amount:tmp, price_include:false, id: tax.id};
res.push(data);
} else if (tax.type === "fixed") {
tmp = round_pr(tax.amount * self.get_quantity(), currency_rounding);
tmp = tax.amount * self.get_quantity();
data = {amount:tmp, price_include:false, id: tax.id};
res.push(data);
} else {