No payment means if COMPANY_BANK_IBAN is empty

This commit is contained in:
sparkyx 2025-11-27 10:46:35 +01:00
parent c75a289af9
commit 213144cbf2

View file

@ -530,8 +530,11 @@ class InvoiceUBL21 extends XMLInvoice {
$root->appendChild($this->build_supplier());
// add the customer
$root->appendChild($this->build_customer());
// add the payment
$root->appendChild($this->build_paymentInfo());
// add the payment if there is a bank account
if ( $company['COMPANY_BANK_IBAN'] != "")
$root->appendChild($this->build_paymentInfo());
// Add cac:TaxTotal
$root->appendChild($this->build_taxTotal());