Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple PaymentMeans #52

Open
internaut19 opened this issue Nov 3, 2023 · 0 comments · May be fixed by #60
Open

Multiple PaymentMeans #52

internaut19 opened this issue Nov 3, 2023 · 0 comments · May be fixed by #60

Comments

@internaut19
Copy link

internaut19 commented Nov 3, 2023

Hello!

I am trying to find a way to put multiple payment means in an invoice but I can get it to work. What I am doing wrong?

$supplier_bank_details = (new \NumNum\UBL\FinancialInstitutionBranch())
->setID('Bank Name 1');

$supplier_iban_details = (new \NumNum\UBL\PayeeFinancialAccount())
->setID('IBAN1')
->setFinancialInstitutionBranch($supplier_bank_details);

$supplier_bank_details2 = (new \NumNum\UBL\FinancialInstitutionBranch())
->setID('Bank Name 2');

$supplier_iban_details2 = (new \NumNum\UBL\PayeeFinancialAccount())
->setID('IBAN2')
->setFinancialInstitutionBranch($supplier_bank_details2);

.....

$supplier_payment_means = (new \NumNum\UBL\PaymentMeans())
->setPaymentMeansCode(21)
->setPayeeFinancialAccount($supplier_iban_details);

$supplier_payment_means2 = (new \NumNum\UBL\PaymentMeans())
->setPaymentMeansCode(21)
->setPayeeFinancialAccount($supplier_iban_details2);
.....

$invoice = (new \NumNum\UBL\Invoice())
.....
->setAccountingCustomerParty($clientCompany)
->setPaymentMeans($supplier_payment_means)
->setPaymentMeans($supplier_payment_means2)
->setTaxTotal($taxTotal)
->setLegalMonetaryTotal($legalMonetaryTotal)
->setInvoiceLines($invoiceLines);
TSimkus added a commit to TSimkus/ubl-invoice that referenced this issue Jan 20, 2024
@TSimkus TSimkus linked a pull request Jan 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant