[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:
parent
d4cc447427
commit
569d051f0b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue