Codeunit 6117 E-Doc. Create Purchase Invoice

E-Document Core, Microsoft.eServices.EDocument.Processing.Import

Source AL, 145 lines

src/Apps/W1/EDocument/App/src/Processing/Import/FinishDraft/EDocCreatePurchaseInvoice.Codeunit.allines 19 to 34 of 145, Copyright (c) Microsoft Corporation. MIT

codeunit 6117 "E-Doc. Create Purchase Invoice" implements IEDocumentFinishDraft, IEDocumentCreatePurchaseInvoice{    Access = Internal;    var        Telemetry: Codeunit "Telemetry";        InvoiceAlreadyExistsErr: Label 'A purchase invoice with external document number %1 already exists for vendor %2.', Comment = '%1 = Vendor Invoice No., %2 = Vendor No.';        DraftLineDoesNotConstantTypeAndNumberErr: Label 'One of the draft lines do not contain the type and number. Please, specify these fields manually.';    procedure ApplyDraftToBC(EDocument: Record "E-Document"; EDocImportParameters: Record "E-Doc. Import Parameters"): RecordId    var        EDocumentPurchaseHeader: Record "E-Document Purchase Header";        PurchaseHeader: Record "Purchase Header";        TempPOMatchWarnings: Record "E-Doc PO Match Warning" temporary;        EDocPOMatching: Codeunit "E-Doc. PO Matching";        EDocPurchaseDocumentHelper: Codeunit "E-Doc. Purch. Doc. Helper";

All 145 lines

Public procedures 3 in 29

ApplyDraftToBC(EDocument: Record "E-Document"; EDocImportParameters: Record "E-Doc. Import Parameters"): RecordIdnew in 26
RevertDraftActions(EDocument: Record "E-Document")new in 26
CreatePurchaseInvoice(EDocument: Record "E-Document"): Record "Purchase Header"new in 26