No payment means if COMPANY_BANK_IBAN is empty
This commit is contained in:
parent
c75a289af9
commit
213144cbf2
1 changed files with 5 additions and 2 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue