File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1666,14 +1666,14 @@ class function TZUGFeRDInvoiceAdapter.LoadFromInvoiceDescriptor(
16661666 end ;
16671667 end ;
16681668
1669- // Achtung, CII-Format maximal ein Element erlaubt, UBL-Format beliebig viele
1670- if _InvoiceDescriptor.InvoiceReferencedDocument <> nil then
1671- if (_InvoiceDescriptor.InvoiceReferencedDocument .ID <> ' ' ) and
1672- (_InvoiceDescriptor.InvoiceReferencedDocument .IssueDateTime.GetValueOrDefault > 100 ) then
1669+ // Achtung, CII-Format <= v2.2 maximal ein Element erlaubt, UBL-Format beliebig viele
1670+ for i := 0 to _InvoiceDescriptor.InvoiceReferencedDocuments.Count- 1 do
1671+ if (_InvoiceDescriptor.InvoiceReferencedDocuments[i] .ID <> ' ' ) and
1672+ (_InvoiceDescriptor.InvoiceReferencedDocuments[i] .IssueDateTime.GetValueOrDefault > 100 ) then
16731673 with _Invoice.PrecedingInvoiceReferences.AddPrecedingInvoiceReference do
16741674 begin
1675- ID := _InvoiceDescriptor.InvoiceReferencedDocument .ID;
1676- IssueDate := _InvoiceDescriptor.InvoiceReferencedDocument .IssueDateTime.GetValueOrDefault(0 );
1675+ ID := _InvoiceDescriptor.InvoiceReferencedDocuments[i] .ID;
1676+ IssueDate := _InvoiceDescriptor.InvoiceReferencedDocuments[i] .IssueDateTime.GetValueOrDefault(0 );
16771677 end ;
16781678
16791679 _Invoice.TaxAmountTotal := _InvoiceDescriptor.TaxTotalAmount.GetValueOrDefault(0 );
You can’t perform that action at this time.
0 commit comments