[FIX] point_of_sale: fix included taxes
The unit_price should be already 'fixed' by the time we get in
`_compute_amount_line_all`.
This reverts commit d938ba87ae.
This commit is contained in:
@@ -1602,8 +1602,7 @@ class pos_order_line(osv.osv):
|
||||
fiscal_position_id = line.order_id.fiscal_position_id
|
||||
if fiscal_position_id:
|
||||
taxes = fiscal_position_id.map_tax(taxes)
|
||||
price = self.env['account.tax']._fix_tax_included_price(
|
||||
line.price_unit * (1 - (line.discount or 0.0) / 100.0), line.product_id.taxes_id, taxes)
|
||||
price = line.price_unit * (1 - (line.discount or 0.0) / 100.0)
|
||||
line.price_subtotal = line.price_subtotal_incl = price * line.qty
|
||||
if taxes:
|
||||
taxes = taxes.compute_all(price, currency, line.qty, product=line.product_id, partner=line.order_id.partner_id or False)
|
||||
|
||||
Reference in New Issue
Block a user