From 15878ffbd5a3d9645621af7bb3f7644249d03a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Feb 2026 18:28:24 +0100 Subject: [PATCH] Render invoice payment means in UBL and UNCEFACT --- modules/edocument_ubl/CHANGELOG | 1 + .../edocument_ubl/template/2/CreditNote.xml | 24 +++++++++++++++++ modules/edocument_ubl/template/2/Invoice.xml | 24 +++++++++++++++++ modules/edocument_uncefact/CHANGELOG | 1 + .../template/16B-CII/CrossIndustryInvoice.xml | 27 ++++++++++++++++--- 5 files changed, 74 insertions(+), 3 deletions(-) diff --git a/modules/edocument_ubl/CHANGELOG b/modules/edocument_ubl/CHANGELOG index c0c50ba91b..326f83c231 100644 --- a/modules/edocument_ubl/CHANGELOG +++ b/modules/edocument_ubl/CHANGELOG @@ -1,3 +1,4 @@ +* Render payment means * Set BillingReference to Invoice and Credit Note * Render allowance and charge * Fill buyer's item identification diff --git a/modules/edocument_ubl/template/2/CreditNote.xml b/modules/edocument_ubl/template/2/CreditNote.xml index 62b0261ed6..606c0deea4 100644 --- a/modules/edocument_ubl/template/2/CreditNote.xml +++ b/modules/edocument_ubl/template/2/CreditNote.xml @@ -57,6 +57,30 @@ this repository contains the full copyright notices and license terms. --> ${Party(this.accounting_customer_party, this.accounting_customer_address, this.accounting_customer_tax_identifier, identifications=[this.accounting_customer_party.identifier_iso6523] if (specification or '').startswith('peppol') else None, specification=specification)} + + + ${payment_mean.unece_code} + ${this.invoice.customer_payment_reference} + + + + ${payment_mean.instrument.iban_compact} + + ${payment_mean.instrument.bank.bic} + + + + + + ${payment_mean.instrument.identification} + + ${payment_mean.instrument.account_number.number} + + + + + + diff --git a/modules/edocument_ubl/template/2/Invoice.xml b/modules/edocument_ubl/template/2/Invoice.xml index 9c713588c9..dea4fa5825 100644 --- a/modules/edocument_ubl/template/2/Invoice.xml +++ b/modules/edocument_ubl/template/2/Invoice.xml @@ -57,6 +57,30 @@ this repository contains the full copyright notices and license terms. --> ${Party(this.accounting_customer_party, this.accounting_customer_address, this.accounting_customer_tax_identifier, identifications=[this.accounting_customer_party.identifier_iso6523] if (specification or '').startswith('peppol') else None, specification=specification)} + + + ${payment_mean.unece_code} + ${this.invoice.customer_payment_reference} + + + + ${payment_mean.instrument.iban_compact} + + ${payment_mean.instrument.bank.bic} + + + + + + ${payment_mean.instrument.identification} + + ${payment_mean.instrument.account_number.number} + + + + + + diff --git a/modules/edocument_uncefact/CHANGELOG b/modules/edocument_uncefact/CHANGELOG index 7d792e6269..2adfeeb45c 100644 --- a/modules/edocument_uncefact/CHANGELOG +++ b/modules/edocument_uncefact/CHANGELOG @@ -1,3 +1,4 @@ +* Render payment means Version 7.8.0 - 2025-12-15 -------------------------- diff --git a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml index a0d443505a..1af30de675 100644 --- a/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml +++ b/modules/edocument_uncefact/template/16B-CII/CrossIndustryInvoice.xml @@ -115,9 +115,30 @@ this repository contains the full copyright notices and license terms. --> ${DateTime(this.invoice.invoice_date)} - - 1 - + + + ${payment_mean.unece_code} + ${this.invoice.customer_payment_reference} + + + + ${payment_mean.instrument.iban} + + + ${payment_mean.instrument.bank.bic} + + + + + ${payment_mean.instrument.account_number.number} + + ${payment_mean.instrument.account_number.account.bank.bic} + + + + + + ${TradeTax(tax.tax, tax.amount, tax.base)}