Skip to content

Commit 1d274d6

Browse files
committed
wrong zugferd bank account readed #18
1 parent e55c267 commit 1d274d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

intf.XRechnung.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,11 +1390,11 @@ class function TZUGFeRDInvoiceAdapter.LoadFromInvoiceDescriptor(
13901390
if _InvoiceDescriptor.PaymentMeans <> nil then
13911391
_Invoice.AccountingSupplierParty.BankAssignedCreditorIdentifier := _InvoiceDescriptor.PaymentMeans.SEPACreditorIdentifier;
13921392
//TODO Mehrere Bankverbindungen
1393-
if _InvoiceDescriptor.CreditorBankAccounts.Count > 0 then
1393+
if _InvoiceDescriptor.DebitorBankAccounts.Count > 0 then
13941394
begin
1395-
_Invoice.PaymentFinancialAccount := _InvoiceDescriptor.CreditorBankAccounts[0].IBAN;
1396-
_Invoice.PaymentFinancialAccountName := _InvoiceDescriptor.CreditorBankAccounts[0].Name;
1397-
_Invoice.PaymentFinancialInstitutionBranch := _InvoiceDescriptor.CreditorBankAccounts[0].BIC;
1395+
_Invoice.PaymentFinancialAccount := _InvoiceDescriptor.DebitorBankAccounts[0].IBAN;
1396+
_Invoice.PaymentFinancialAccountName := _InvoiceDescriptor.DebitorBankAccounts[0].Name;
1397+
_Invoice.PaymentFinancialInstitutionBranch := _InvoiceDescriptor.DebitorBankAccounts[0].BIC;
13981398
end;
13991399

14001400
//TODO #SKONTO Type

0 commit comments

Comments
 (0)