Codeunit 18123712 EOS066 Document Class Mgt.

Codeunit 18123712 EOS066 Document Class Mgt.

Gathers all functions used in document class management

Methods

NotificationHandler

procedure NotificationHandler(PageNoToOpen: Integer; Scope: NotificationScope; MessageText: Text; ActionText: Text; HasAction: Boolean)

Handles page notifications

Parameters / Return Value

  • PageNoToOpen Integer

  • Scope NotificationScope

  • MessageText Text

  • ActionText Text

  • HasAction Boolean


GotoPage

procedure GotoPage(Notif: Notification)

Handles page notifications

Parameters / Return Value

  • Notif Notification

NewSalesDocFromClass

procedure NewSalesDocFromClass(EOS066SalesDocumentClass: Record "EOS066 Sales Document Class"; Hidedialog: Boolean)

Creates a new document already initialized with a specific class

Parameters / Return Value

  • EOS066SalesDocumentClass Record "EOS066 Sales Document Class"

    Document class to use

  • Hidedialog Boolean

    Specifies if UI is suppressed


NewPurchDocFromClass

procedure NewPurchDocFromClass(EOS066PurchDocumentClass: Record "EOS066 Purchase Document Class"; Hidedialog: Boolean)

Creates a new document already initialized with a specific class

Parameters / Return Value

  • EOS066PurchDocumentClass Record "EOS066 Purchase Document Class"

    Document class to use

  • Hidedialog Boolean

    Specifies if UI is suppressed


OnNewSalesRecordEventFromPage

procedure OnNewSalesRecordEventFromPage(var Rec: Record "Sales Header"; BelowxRec: Boolean; var xRec: Record "Sales Header")

Handles new sales document creation from pages; ask and assigns specific class to use

Parameters / Return Value

  • Rec Record "Sales Header"

    New sales header record

  • BelowxRec Boolean

    Standard signature

  • xRec Record "Sales Header"

    Old sales header record


GetSalesDocDefaultClasses

procedure GetSalesDocDefaultClasses(SalesHeader: Record "Sales Header") DocClass: Code[10]

Gets default document class code from general CDL setup

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header from which retrieve document type

  • Returns Code[10]

    Class found


TestSalesNoSeries

procedure TestSalesNoSeries(SalesHeader: Record "Sales Header")

Tests if for the assigned document class a document no. serie is specified

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header you’re processing


InitSalesDoc

procedure InitSalesDoc(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header")

Inits sales header no. using class document no. serie

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header you’re processing

  • xSalesHeader Record "Sales Header"


InitRecordFromSalesDocClass

procedure InitRecordFromSalesDocClass(var SalesHeader: Record "Sales Header")

After record has been inserted, fills record fields with class defaults (i.e. Reason)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header you’re processing


InitNosFromSalesDocClass

procedure InitNosFromSalesDocClass(var SalesHeader: Record "Sales Header")

Before record is inserted, fills no. series fields with class defaults (i.e. Posting No. Series)

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header you’re processing


OnValidateSalesDocClass

procedure OnValidateSalesDocClass(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; Hidedialog: Boolean)

Fired when document class field is validated

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header you’re processing

  • xSalesHeader Record "Sales Header"

    Sales header previous version

  • Hidedialog Boolean


CheckSalesDocClassCompliance

procedure CheckSalesDocClassCompliance(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; Hidedialog: Boolean) IsCompliant: Boolean

Checks that document values (i.e. Reason) are compliant with belonging class

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Sales header you’re processing

  • xSalesHeader Record "Sales Header"

    Sales header previous version

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • Returns Boolean

    TRUE: no incongruences found, FALSE: incongruences found


OnNewPurchRecordEventFromPage

procedure OnNewPurchRecordEventFromPage(var Rec: Record "Purchase Header"; BelowxRec: Boolean; var xRec: Record "Purchase Header")

Handles new purchase document creation from pages; ask and assigns specific class to use

Parameters / Return Value

  • Rec Record "Purchase Header"

    New purchase header record

  • BelowxRec Boolean

    Standard signature

  • xRec Record "Purchase Header"

    Old purchase header record


GetPurchDocDefaultClasses

procedure GetPurchDocDefaultClasses(PurchaseHeader: Record "Purchase Header") DocClass: Code[10]

Gets default document class code from general CDL setup

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header from which retrieve document type

  • Returns Code[10]

    Class found


TestPurchNoSeries

procedure TestPurchNoSeries(PurchaseHeader: Record "Purchase Header")

Tests if for the assigned documebt class a document no. serie is specified

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re processing


OnValidatePurchDocClass

procedure OnValidatePurchDocClass(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Hidedialog: Boolean)

Fired when document class field is validated

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re processing

  • xPurchaseHeader Record "Purchase Header"

    Purchase header previous version

  • Hidedialog Boolean


InitPurchDoc

procedure InitPurchDoc(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")

Inits purchase header no. using class document no. serie

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re processing

  • xPurchaseHeader Record "Purchase Header"


InitRecordFromPurchDocClass

procedure InitRecordFromPurchDocClass(var PurchaseHeader: Record "Purchase Header")

After record has been inserted, fills record fields with class defaults (i.e. Reason)

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re processing


InitNosFromPurchDocClass

procedure InitNosFromPurchDocClass(var PurchaseHeader: Record "Purchase Header")

Before record is inserted, fills no. series fields with class defaults (i.e. Posting No. Series)

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re processing


CheckPurchDocClassCompliance

procedure CheckPurchDocClassCompliance(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Hidedialog: Boolean) IsCompliant: Boolean

Checks that document values (i.e. Reason) are compliant with belonging class

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Purchase header you’re processing

  • xPurchaseHeader Record "Purchase Header"

    Purchase header previous version

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • Returns Boolean

    TRUE: no incongruences found, FALSE: incongruences found



EOS Labs -