details: https://code.tryton.org/tryton/commit/e57606fa3a20
branch: default
user: Cédric Krier <[email protected]>
date: Mon Dec 22 12:38:51 2025 +0100
description:
Do not set payment terms amount in Peppol UBL
UBL-CR-459: A UBL invoice should not include the PaymentTerms Amount
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 06c27eb83f5a -r e57606fa3a20
modules/edocument_ubl/template/2/CreditNote.xml
--- a/modules/edocument_ubl/template/2/CreditNote.xml Mon Dec 22 12:33:05
2025 +0100
+++ b/modules/edocument_ubl/template/2/CreditNote.xml Mon Dec 22 12:38:51
2025 +0100
@@ -52,7 +52,7 @@
</cac:AccountingCustomerParty>
<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:attrs="{'currencyID':
this.invoice.currency.code}">${line.amount}</cbc:Amount>
+ <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>
</cac:PaymentTerms>
<cac:TaxTotal py:for="group, lines, amount in this.taxes">
diff -r 06c27eb83f5a -r e57606fa3a20
modules/edocument_ubl/template/2/Invoice.xml
--- a/modules/edocument_ubl/template/2/Invoice.xml Mon Dec 22 12:33:05
2025 +0100
+++ b/modules/edocument_ubl/template/2/Invoice.xml Mon Dec 22 12:38:51
2025 +0100
@@ -52,7 +52,7 @@
</cac:AccountingCustomerParty>
<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:attrs="{'currencyID':
this.invoice.currency.code}">${line.amount}</cbc:Amount>
+ <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>
</cac:PaymentTerms>
<cac:TaxTotal py:for="group, lines, amount in this.taxes">