From 762ee55d457e8515e0e3caaa9ee85fa8316b08ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 11 Aug 2026 12:10:58 +0200 Subject: [PATCH] Manage the sign on LineTotalAmount instead of BilledQuantity in UN/CEFACT 16B-CII Closes #15006 (grafted from 0697a96aaf6c42aeb8e3d81b2d33167eb85a974c) --HG-- branch : 8.0 --- .../template/16B-CII/CrossIndustryInvoice.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml index e5f8027c29..87ce726702 100644 --- a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml +++ b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml @@ -78,14 +78,14 @@ this repository contains the full copyright notices and license terms. --> - ${format(Decimal(str(line.quantity * this.type_sign)), 'f')} + ${format(abs(Decimal(str(line.quantity))), 'f')} ${TradeTax(tax.tax)} - ${format(line.amount.normalize(), 'f')} + ${format((line.amount * this.type_sign).normalize(), 'f')}