Codeunit 6402 E-Doc. Purch. Doc. Helper

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

Source AL, 537 lines

src/Apps/W1/EDocument/App/src/Processing/Import/FinishDraft/EDocPurchDocHelper.Codeunit.allines 26 to 41 of 537, Copyright (c) Microsoft Corporation. MIT

codeunit 6402 "E-Doc. Purch. Doc. Helper"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    Permissions = tabledata "Dimension Set Tree Node" = im,                  tabledata "Dimension Set Entry" = im;    procedure CreatePurchaseLineFromDraft(PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseLine: Record "E-Document Purchase Line"; HasTotalDiscount: Boolean; LineNo: Integer)    var        PurchaseLine: Record "Purchase Line";        EDocRecordLink: Record "E-Doc. Record Link";        EDocumentPurchaseHistMapping: Codeunit "E-Doc. Purchase Hist. Mapping";        DimensionManagement: Codeunit DimensionManagement;        PurchaseLineCombinedDimensions: array[10] of Integer;        GlobalDim1, GlobalDim2 : Code[20];

All 537 lines

Public procedures 11 in 29

ValidateFieldWithContext(var Rec: Record "Purchase Header"; FieldNo: Integer; Value: Variant)new in 28
ValidateFieldWithContext(var Rec: Record "Purchase Line"; FieldNo: Integer; Value: Variant)new in 28
ApplyDefaultPostingDateFromSetup(var PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseHeader: Record "E-Document Purchase Header")new in 28
ApplyVATDifferenceToLines(PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseHeader: Record "E-Document Purchase Header")new in 28
SetNormalReverseChargeFilter(var VATPostingSetup: Record "VAT Posting Setup"; VATBusPostingGroup: Code[20])new in 28
CreatePurchaseLineFromDraft(PurchaseHeader: Record "Purchase Header"; EDocumentPurchaseLine: Record "E-Document Purchase Line"; HasTotalDiscount: Boolean; LineNo: Integer)new in 28

All 11 procedures