Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ codeunit 6102 "E-Doc. Export"
ErrorCount := EDocumentErrorHelper.ErrorMessageCount(EDocument);
CreateEDocument(EDocumentService, EDocument, SourceDocumentHeaderMapped, SourceDocumentLineMapped, TempBlob);
Success := EDocumentErrorHelper.ErrorMessageCount(EDocument) = ErrorCount;
OnExportEDocumentAfterCreateEDocument(EDocumentService, EDocument, SourceDocumentHeaderMapped, SourceDocumentLineMapped, TempBlob, Success);
if Success then
EDocServiceStatus := Enum::"E-Document Service Status"::Exported
else
Expand Down Expand Up @@ -530,4 +531,9 @@ codeunit 6102 "E-Doc. Export"
local procedure OnAfterCreateEDocument(var EDocument: Record "E-Document"; var SourceDocumentHeader: RecordRef)
begin
end;

[IntegrationEvent(false, false)]
local procedure OnExportEDocumentAfterCreateEDocument(EDocumentService: Record "E-Document Service"; EDocument: Record "E-Document"; SourceDocumentHeaderMapped: RecordRef; SourceDocumentLineMapped: RecordRef; var TempBlob: Codeunit "Temp Blob"; Success: Boolean)
begin
end;
}
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,9 @@ codeunit 6103 "E-Document Subscribers"
EDocument."Document Type" := DocumentType;
EDocument.Status := Enum::"E-Document Status"::Processed;
EDocument.Modify(true);


OnAfterUpdateToPostedPurchaseEDocument(EDocument, PostedRecord, PostedDocumentNo, DocumentType);

EDocService := EDocumentLog.GetLastServiceFromLog(EDocument);
EDocLogHelper.InsertLog(EDocument, EDocService, Enum::"E-Document Service Status"::"Imported Document Created");
end;
Expand Down Expand Up @@ -632,4 +634,8 @@ codeunit 6103 "E-Document Subscribers"
Telemetry.LogMessage('0000PYF', DraftChangeTok, Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::All, TelemetryDimensions);
end;

[IntegrationEvent(false, false)]
local procedure OnAfterUpdateToPostedPurchaseEDocument(var EDocument: Record "E-Document"; PostedRecord: Variant; PostedDocumentNo: Code[20]; DocumentType: Enum "E-Document Type")
begin
end;
}
Loading