details: https://code.tryton.org/tryton/commit/0c79fd6c2084
branch: default
user: Cédric Krier <[email protected]>
date: Tue Oct 20 17:54:30 2026 +0200
description:
Do not render DueDate in UBL credit note for Peppol BIS Billing 3.0
Closes #15187
diffstat:
modules/edocument_ubl/template/2/CreditNote.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 614525f7f8d8 -r 0c79fd6c2084
modules/edocument_ubl/template/2/CreditNote.xml
--- a/modules/edocument_ubl/template/2/CreditNote.xml Tue Oct 20 12:40:16
2026 +0200
+++ b/modules/edocument_ubl/template/2/CreditNote.xml Tue Oct 20 17:54:30
2026 +0200
@@ -16,7 +16,9 @@
</py:if>
<cbc:ID>${this.invoice.number}</cbc:ID>
<cbc:IssueDate>${this.invoice.invoice_date}</cbc:IssueDate>
-<cbc:DueDate>${max(l.maturity_date for l in this.invoice.lines_to_pay if
l.maturity_date)}</cbc:DueDate>
+<py:if test="specification != 'peppol-bis-3'">
+ <cbc:DueDate>${max(l.maturity_date for l in this.invoice.lines_to_pay if
l.maturity_date)}</cbc:DueDate>
+</py:if>
<cbc:CreditNoteTypeCode>${this.type_code}</cbc:CreditNoteTypeCode>
<cbc:DocumentCurrencyCode>${this.invoice.currency.code}</cbc:DocumentCurrencyCode>
<cbc:BuyerReference
py:if="this.invoice.reference">${this.invoice.reference}</cbc:BuyerReference>