Skip to content

Commit dd6b3c9

Browse files
authored
Merge pull request #66 from THOptinet/fix/profile_xrechnung
fix: extracting xml for ZUGFeRD profile XRechnung
2 parents a46bed4 + e30771d commit dd6b3c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

intf.ZUGFeRDHelper.pas

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{* Licensed to the Apache Software Foundation (ASF) under one
1+
{* Licensed to the Apache Software Foundation (ASF) under one
22
* or more contributor license agreements. See the NOTICE file
33
* distributed with this work for additional information
44
* regarding copyright ownership. The ASF licenses this file
@@ -264,7 +264,8 @@ function TZUGFeRDPdfHelper.PdfTkServerGetZUGFeRDPdfAttachment(const _PdfFilename
264264
lList := TDirectory.GetFiles(tmpPath,'*.xml', TSearchOption.soTopDirectoryOnly);
265265
for i := 0 to Length(LList) - 1 do
266266
if (Pos('zugferd',LowerCase(ExtractFilename(LList[i]))) = 1) or
267-
(Pos('factur-x',LowerCase(ExtractFilename(LList[i]))) = 1) then
267+
(Pos('factur-x',LowerCase(ExtractFilename(LList[i]))) = 1) or
268+
(Pos('xrechnung',LowerCase(ExtractFilename(LList[i]))) = 1)then
268269
begin
269270
_Attachment := TMemoryStream.Create;
270271
TMemoryStream(_Attachment).LoadFromFile(LList[i]);

0 commit comments

Comments
 (0)