From 03a9ca3acea2a78d19f37c70ca8a2e56d3f946bf Mon Sep 17 00:00:00 2001 From: Abdul Aziz Amrullah Date: Fri, 12 Jun 2026 08:23:04 +0700 Subject: [PATCH] Exclude discount in Subtotal --- wizard/pos_export_bc_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wizard/pos_export_bc_wizard.py b/wizard/pos_export_bc_wizard.py index 509b63e..a39208c 100644 --- a/wizard/pos_export_bc_wizard.py +++ b/wizard/pos_export_bc_wizard.py @@ -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)