Do not set payment terms due date in Peppol UBL

UBL-CR-463: A UBL invoice should not include the PaymentTerms PaymentDueDate
This commit is contained in:
Cédric Krier committed 2025-12-22 12:36:04 +01:00
1 parent 9302fe27d7
commit e3f4ec32d1
2 files changed
+2 -2

No files matched your search

@@ -53,7 +53,7 @@ this repository contains the full copyright notices and license terms. -->
<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>
+1 -1
View File
@@ -53,7 +53,7 @@ this repository contains the full copyright notices and license terms. -->
<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>