Exclude discount in Subtotal
This commit is contained in:
parent
eaec553466
commit
03a9ca3ace
@ -110,7 +110,7 @@ class PosExportBcWizard(models.TransientModel):
|
||||
table_customer = table or floating_order_name or customer
|
||||
invoice = order.pos_reference or order.name
|
||||
|
||||
subtotal = sum(l.price_subtotal for l in order.lines)
|
||||
subtotal = sum(l.price_subtotal for l in order.lines if l.price_unit >= 0)
|
||||
discount_order = sum(abs(l.price_subtotal) for l in order.lines if l.price_unit < 0)
|
||||
tax = order.amount_tax
|
||||
paid = sum(p.amount for p in order.payment_ids if p.amount > 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user