From df91909cf63e268b187b77ee9f64ba958a4c4989 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 15 Dec 2024 14:08:19 +0100 Subject: [PATCH] fix: item net rate --- eu_einvoice/european_e_invoice/custom/sales_invoice.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eu_einvoice/european_e_invoice/custom/sales_invoice.py b/eu_einvoice/european_e_invoice/custom/sales_invoice.py index 6886a27..827c751 100644 --- a/eu_einvoice/european_e_invoice/custom/sales_invoice.py +++ b/eu_einvoice/european_e_invoice/custom/sales_invoice.py @@ -332,9 +332,8 @@ def _add_line_item(self, item: SalesInvoiceItem): li.product.buyer_assigned_id = item.customer_item_code li.product.description = html2text(item.description) - net_amount = flt(item.net_amount, item.precision("net_amount")) li.agreement.net.amount = abs( - net_amount + flt(item.net_rate, item.precision("net_rate")) ) # [BR-27]-The Item net price (BT-146) shall NOT be negative. li.delivery.billed_quantity = (