Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Apps/DE/EDocumentDE/app/src/ZUGFeRD/ZUGFeRDFormat.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,18 @@ codeunit 13920 "ZUGFeRD Format" implements "E-Document"
exit;

FileName := StrSubstNo(EDOCLogFileTxt, EDocumentLog."E-Doc. Entry No");
FileName += '.pdf';
FileName += EDocumentService.GetDefaultFileExtension();
end;

[EventSubscriber(ObjectType::Table, Database::"E-Document Service", OnAfterGetDefaultFileExtension, '', false, false)]
local procedure HandleOnAfterGetDefaultFileExtension(EDocumentService: Record "E-Document Service"; var FileExtension: Text)
var
PDFFileTypeTok: Label '.pdf', Locked = true;
begin
if EDocumentService."Document Format" <> EDocumentService."Document Format"::ZUGFeRD then
exit;

FileExtension := PDFFileTypeTok;
end;

local procedure CheckCompanyInfoMandatory()
Expand Down
Loading