details:   https://code.tryton.org/tryton/commit/a26ff3344a35
branch:    7.0
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
        (grafted from 0697a96aaf6c42aeb8e3d81b2d33167eb85a974c)
diffstat:

 modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 2ca11f97a7ad -r a26ff3344a35 
modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml
--- a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml      
Tue Aug 11 12:05:48 2026 +0200
+++ b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml      
Tue Aug 11 12:10:58 2026 +0200
@@ -74,14 +74,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 
{}">${line.quantity * this.type_sign}</ram:BilledQuantity>
+                <ram:BilledQuantity py:attrs="{'unitCode': 
line.unit.unece_code} if line.unit and line.unit.unece_code else 
{}">${abs(line.quantity)}</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}">${line.amount}</ram:LineTotalAmount>
+                    <ram:LineTotalAmount py:attrs="{'currencyID': 
this.invoice.currency.code}">${line.amount * 
this.type_sign}</ram:LineTotalAmount>
                 </ram:SpecifiedTradeSettlementLineMonetarySummation>
             </ram:SpecifiedLineTradeSettlement>
         </ram:IncludedSupplyChainTradeLineItem>

Reply via email to