details:   https://code.tryton.org/tryton/commit/033cd875bcd8
branch:    7.8
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
        (grafted from 0c79fd6c2084a0cfcb36fd72902a88a31d62865c)
diffstat:

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

diffs (14 lines):

diff -r 7ab05a9fcdf3 -r 033cd875bcd8 
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>

Reply via email to