From d49700e18a183a6ea96fcf137af493dae9514673 Mon Sep 17 00:00:00 2001 From: Abdul Aziz Amrullah Date: Mon, 8 Jun 2026 14:01:16 +0700 Subject: [PATCH] Fixed header discount value --- 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 f5dd320..83f2c45 100644 --- a/wizard/pos_export_bc_wizard.py +++ b/wizard/pos_export_bc_wizard.py @@ -95,7 +95,7 @@ class PosExportBcWizard(models.TransientModel): invoice = order.pos_reference or order.name subtotal = sum(l.price_subtotal for l in order.lines) - discount_order = 0.0 # Standard Odoo doesn't have an order level discount easily isolated from line discounts + discount_order = sum(abs(l.price_subtotal) for l in order.lines if l.price_unit < 0) tax = order.amount_tax charge = order.amount_total # In Odoo, payment amount can be negative for change.