[minor] fixed testcase
This commit is contained in:
parent
62b1cbf003
commit
8f49cf7c03
@ -149,6 +149,7 @@ class SellingController(StockController):
|
|||||||
(1 + cumulated_tax_fraction), self.precision("base_amount", item))
|
(1 + cumulated_tax_fraction), self.precision("base_amount", item))
|
||||||
|
|
||||||
item.base_rate = flt(item.base_amount / item.qty, self.precision("base_rate", item))
|
item.base_rate = flt(item.base_amount / item.qty, self.precision("base_rate", item))
|
||||||
|
item.discount_percentage = flt(item.discount_percentage, self.precision("discount_percentage", item))
|
||||||
|
|
||||||
if item.discount_percentage == 100:
|
if item.discount_percentage == 100:
|
||||||
item.base_price_list_rate = item.base_rate
|
item.base_price_list_rate = item.base_rate
|
||||||
|
Loading…
Reference in New Issue
Block a user