Skip to content

Commit

Permalink
wrong zugferd bank account readed #18
Browse files Browse the repository at this point in the history
  • Loading branch information
landrix committed Oct 9, 2024
1 parent e55c267 commit 1d274d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions intf.XRechnung.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1390,11 +1390,11 @@ class function TZUGFeRDInvoiceAdapter.LoadFromInvoiceDescriptor(
if _InvoiceDescriptor.PaymentMeans <> nil then
_Invoice.AccountingSupplierParty.BankAssignedCreditorIdentifier := _InvoiceDescriptor.PaymentMeans.SEPACreditorIdentifier;
//TODO Mehrere Bankverbindungen
if _InvoiceDescriptor.CreditorBankAccounts.Count > 0 then
if _InvoiceDescriptor.DebitorBankAccounts.Count > 0 then
begin
_Invoice.PaymentFinancialAccount := _InvoiceDescriptor.CreditorBankAccounts[0].IBAN;
_Invoice.PaymentFinancialAccountName := _InvoiceDescriptor.CreditorBankAccounts[0].Name;
_Invoice.PaymentFinancialInstitutionBranch := _InvoiceDescriptor.CreditorBankAccounts[0].BIC;
_Invoice.PaymentFinancialAccount := _InvoiceDescriptor.DebitorBankAccounts[0].IBAN;
_Invoice.PaymentFinancialAccountName := _InvoiceDescriptor.DebitorBankAccounts[0].Name;
_Invoice.PaymentFinancialInstitutionBranch := _InvoiceDescriptor.DebitorBankAccounts[0].BIC;
end;

//TODO #SKONTO Type
Expand Down

0 comments on commit 1d274d6

Please sign in to comment.