details: https://code.tryton.org/tryton/commit/0697a96aaf6c
branch: default
user: Cédric Krier <[email protected]>
date: Tue Aug 11 12:10:58 2026 +0200
description:
Manage the sign on LineTotalAmount instead of BilledQuantity in
UN/CEFACT 16B-CII
Closes #15006
diffstat:
modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 702f1b938b21 -r 0697a96aaf6c
modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
--- a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
Tue Aug 11 12:08:26 2026 +0200
+++ b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
Tue Aug 11 12:10:58 2026 +0200
@@ -78,14 +78,14 @@
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
- <ram:BilledQuantity py:attrs="{'unitCode':
line.unit.unece_code} if line.unit and line.unit.unece_code else
{}">${format(Decimal(str(line.quantity * this.type_sign)),
'f')}</ram:BilledQuantity>
+ <ram:BilledQuantity py:attrs="{'unitCode':
line.unit.unece_code} if line.unit and line.unit.unece_code else
{}">${format(abs(Decimal(str(line.quantity))), 'f')}</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<py:for each="tax in line.invoice_taxes">
${TradeTax(tax.tax)}
</py:for>
<ram:SpecifiedTradeSettlementLineMonetarySummation>
- <ram:LineTotalAmount py:attrs="{'currencyID':
this.invoice.currency.code}">${format(line.amount.normalize(),
'f')}</ram:LineTotalAmount>
+ <ram:LineTotalAmount py:attrs="{'currencyID':
this.invoice.currency.code}">${format((line.amount *
this.type_sign).normalize(), 'f')}</ram:LineTotalAmount>
</ram:SpecifiedTradeSettlementLineMonetarySummation>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>