details:   https://code.tryton.org/tryton/commit/aaf11a99a385
branch:    default
user:      Cédric Krier <[email protected]>
date:      Mon Dec 22 12:36:04 2025 +0100
description:
        Do not set payment terms due date in Peppol UBL

        UBL-CR-463: A UBL invoice should not include the PaymentTerms 
PaymentDueDate
diffstat:

 modules/edocument_ubl/template/2/CreditNote.xml |  2 +-
 modules/edocument_ubl/template/2/Invoice.xml    |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r e57606fa3a20 -r aaf11a99a385 
modules/edocument_ubl/template/2/CreditNote.xml
--- a/modules/edocument_ubl/template/2/CreditNote.xml   Mon Dec 22 12:38:51 
2025 +0100
+++ b/modules/edocument_ubl/template/2/CreditNote.xml   Mon Dec 22 12:36:04 
2025 +0100
@@ -53,7 +53,7 @@
 <cac:PaymentTerms py:for="line in this.invoice.lines_to_pay">
     <cbc:Note py:if="this.invoice.payment_term and 
this.invoice.payment_term.description">${this.invoice.payment_term.description}</cbc:Note>
     <cbc:Amount py:if="not (specification or '').startswith('peppol')" 
py:attrs="{'currencyID': 
this.invoice.currency.code}">${line.amount}</cbc:Amount>
-    <cbc:PaymentDueDate>${line.maturity_date}</cbc:PaymentDueDate>
+    <cbc:PaymentDueDate py:if="not (specification or 
'').startswith('peppol')">${line.maturity_date}</cbc:PaymentDueDate>
 </cac:PaymentTerms>
 <cac:TaxTotal py:for="group, lines, amount in this.taxes">
     <cbc:TaxAmount py:attrs="{'currencyID': 
this.invoice.currency.code}">${-amount}</cbc:TaxAmount>
diff -r e57606fa3a20 -r aaf11a99a385 
modules/edocument_ubl/template/2/Invoice.xml
--- a/modules/edocument_ubl/template/2/Invoice.xml      Mon Dec 22 12:38:51 
2025 +0100
+++ b/modules/edocument_ubl/template/2/Invoice.xml      Mon Dec 22 12:36:04 
2025 +0100
@@ -53,7 +53,7 @@
 <cac:PaymentTerms py:for="line in this.invoice.lines_to_pay">
     <cbc:Note py:if="this.invoice.payment_term and 
this.invoice.payment_term.description">${this.invoice.payment_term.description}</cbc:Note>
     <cbc:Amount py:if="not (specification or '').startswith('peppol')" 
py:attrs="{'currencyID': 
this.invoice.currency.code}">${line.amount}</cbc:Amount>
-    <cbc:PaymentDueDate>${line.maturity_date}</cbc:PaymentDueDate>
+    <cbc:PaymentDueDate py:if="not (specification or 
'').startswith('peppol')">${line.maturity_date}</cbc:PaymentDueDate>
 </cac:PaymentTerms>
 <cac:TaxTotal py:for="group, lines, amount in this.taxes">
     <cbc:TaxAmount py:attrs="{'currencyID': 
this.invoice.currency.code}">${amount}</cbc:TaxAmount>

Reply via email to