You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could we please have a publisher OnBeforeMapEDocument in function ExportEDocument Codeunit Codeunit 6102 "E-Doc. Export"?
internal procedure ExportEDocument(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service") Success: Boolean
var
TempEDocMapping: Record "E-Doc. Mapping" temporary;
EDocLog: Record "E-Document Log";
EDocumentLog: Codeunit "E-Document Log";
TempBlob: Codeunit "Temp Blob";
SourceDocumentHeaderMapped, SourceDocumentLineMapped : RecordRef;
SourceDocumentHeader, SourceDocumentLines : RecordRef;
EDocServiceStatus: Enum "E-Document Service Status";
ErrorCount: Integer;
begin
SourceDocumentHeader.Get(EDocument."Document Record ID");
EDocumentProcessing.GetLines(EDocument, SourceDocumentLines);
// >>>>>>>>
OnBeforeMapEDocument(EDocument, SourceDocumentHeader, SourceDocumentLines);
// >>>>>>>>
MapEDocument(SourceDocumentHeader, SourceDocumentLines, EDocumentService, SourceDocumentHeaderMapped, SourceDocumentLineMapped, TempEDocMapping, false);
// >>>>>>>>
[IntegrationEvent(false, false)]
local procedure OnBeforeMapEDocument(EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef; var SourceDocumentLines: RecordRef;)
begin
end;
// <<<<<<<<
Additional context
We have additional line types, similar to Comment such as headings and line totals, which should not be transferred to the XML. These must be filtered out here.
The text was updated successfully, but these errors were encountered:
Describe the request
Could we please have a publisher OnBeforeMapEDocument in function ExportEDocument Codeunit Codeunit 6102 "E-Doc. Export"?
Additional context
We have additional line types, similar to Comment such as headings and line totals, which should not be transferred to the XML. These must be filtered out here.
The text was updated successfully, but these errors were encountered: