Codeunit 18123258 EOS046 PRQ Doc. Class Mgt.

Codeunit 18123258 EOS046 PRQ Doc. Class Mgt.

Methods

PRQDocClassEnabled

procedure PRQDocClassEnabled(): Boolean

Parameters / Return Value

  • Returns Boolean

OnValidatePRQDocClass

procedure OnValidatePRQDocClass(var PurchaseRequest: Record "EOS Purch. Request Header"; xPurchaseRequest: Record "EOS Purch. Request Header"; Hidedialog: Boolean)

Fired when document class field is validated

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    Purchase Request Header you’re processing

  • xPurchaseRequest Record "EOS Purch. Request Header"

    Purchase Request Header previous version

  • Hidedialog Boolean


NewPRQFromClass

procedure NewPRQFromClass(DocumentClass: Record "EOS046 PRQ Document Class"; Hidedialog: Boolean)

Creates a new document already initialized with a specific class

Parameters / Return Value

  • DocumentClass Record "EOS046 PRQ Document Class"

    Document class to use

  • Hidedialog Boolean

    Specifies if UI is suppressed


OnNewPRQRecordEventFromPage

procedure OnNewPRQRecordEventFromPage(VAR Rec: Record "EOS Purch. Request Header"; BelowxRec: Boolean; VAR xRec: Record "EOS Purch. Request Header")

Handles new purchase request creation from page; ask and assigns specific class to use

Parameters / Return Value

  • Rec Record "EOS Purch. Request Header"

    New purchase request record

  • BelowxRec Boolean

    Standard signature

  • xRec Record "EOS Purch. Request Header"

    Old purchase request record


GetPRQDocDefaultClasses

procedure GetPRQDocDefaultClasses(PurchaseRequest: Record "EOS Purch. Request Header") DocClass: Code[10]

Gets default document class code from PRQ setup

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    Purchase header from which retrieve document type

  • Returns Code[10]

    Class found


TestPRQNoSeries

procedure TestPRQNoSeries(PurchaseRequest: Record "EOS Purch. Request Header")

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

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    Purchase Request Header you’re processing


InitPRQDocNo

procedure InitPRQDocNo(var PurchaseRequest: Record "EOS Purch. Request Header"; xPurchaseRequest: Record "EOS Purch. Request Header")

Inits purchase request no. using class document no. series

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    Purchase request you’re processing

  • xPurchaseRequest Record "EOS Purch. Request Header"


Events

OnBeforeOnValidatePRQDocClass

local procedure OnBeforeOnValidatePRQDocClass(var PurchaseRequest: Record "EOS Purch. Request Header"; xPurchaseRequest: Record "EOS Purch. Request Header"; var Hidedialog: Boolean; var IsHandled: Boolean)

Fired before document class code field is validate

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    Document you’re processing

  • xPurchaseRequest Record "EOS Purch. Request Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterOnValidatePRQDocClass

local procedure OnAfterOnValidatePRQDocClass(var PurchaseRequest: Record "EOS Purch. Request Header"; xPurchaseRequest: Record "EOS Purch. Request Header"; var Hidedialog: Boolean)

Fired after document class code field is validate

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    Document you’re processing

  • xPurchaseRequest Record "EOS Purch. Request Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed


OnBeforeNewPRQFromClass

procedure OnBeforeNewPRQFromClass(DocumentClass: Record "EOS046 PRQ Document Class"; var Hidedialog: Boolean; var IsHandled: Boolean)

Parameters / Return Value

  • DocumentClass Record "EOS046 PRQ Document Class"

  • Hidedialog Boolean

  • IsHandled Boolean


OnAfterNewPRQFromClass

procedure OnAfterNewPRQFromClass(DocumentClass: Record "EOS046 PRQ Document Class"; Hidedialog: Boolean)

Parameters / Return Value

  • DocumentClass Record "EOS046 PRQ Document Class"

  • Hidedialog Boolean


OnBeforeOnNewPRQRecordEventFromPage

procedure OnBeforeOnNewPRQRecordEventFromPage(var Rec: Record "EOS Purch. Request Header"; BelowxRec: Boolean; var xRec: Record "EOS Purch. Request Header"; var IsHandled: Boolean)

Fired before a new document is created starting from standard page

Parameters / Return Value

  • Rec Record "EOS Purch. Request Header"

    New document header

  • BelowxRec Boolean

    Standard event signature

  • xRec Record "EOS Purch. Request Header"

    Standard event signature

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterOnNewPRQRecordEventFromPage

procedure OnAfterOnNewPRQRecordEventFromPage(var Rec: Record "EOS Purch. Request Header"; BelowxRec: Boolean; var xRec: Record "EOS Purch. Request Header")

Fired after a new document is created starting from standard page

Parameters / Return Value

  • Rec Record "EOS Purch. Request Header"

    New document header

  • BelowxRec Boolean

    Standard event signature

  • xRec Record "EOS Purch. Request Header"

    Standard event signature


OnBeforeSelectPRQDocClassFromList

procedure OnBeforeSelectPRQDocClassFromList(var IsHandled: Boolean; var ReturnClass: Code[10])

Fired before selecting document class to use for a new document from list

Parameters / Return Value

  • IsHandled Boolean

    No following app standard code will be executed

  • ReturnClass Code[10]

    Return class code to use


OnAfterSelectPRQDocClassFromList

procedure OnAfterSelectPRQDocClassFromList(var ReturnClass: Code[10])

Fired after selecting document class to use for a new document from list

Parameters / Return Value

  • ReturnClass Code[10]

    Return class code to use


OnBeforeGetPRQDocDefaultClasses

procedure OnBeforeGetPRQDocDefaultClasses(var PurchaseRequest: Record "EOS Purch. Request Header"; var IsHandled: Boolean; var DocClass: Code[10])

Fired before default document class to use is retrived from setup

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    New document header

  • IsHandled Boolean

    No following app standard code will be executed

  • DocClass Code[10]

    Return document class code to use


OnAfterGetPRQDocDefaultClasses

procedure OnAfterGetPRQDocDefaultClasses(PurchaseRequest: Record "EOS Purch. Request Header"; var DocClass: Code[10])

Fired after default document class to use is retrived from setup

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    New document header

  • DocClass Code[10]

    Return document class code to use


OnBeforeTestPRQNoSeries

procedure OnBeforeTestPRQNoSeries(PurchaseRequest: Record "EOS Purch. Request Header"; var IsHandled: Boolean)

Fired before Document No. Series from class is tested to generate new document no.

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    New document header

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterTestPRQNoSeries

procedure OnAfterTestPRQNoSeries(PurchaseRequest: Record "EOS Purch. Request Header")

Fired after Document No. Series from class is tested to generate new document no.

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    New document header


OnBeforeInitPRQDocNo

procedure OnBeforeInitPRQDocNo(var PurchaseRequest: Record "EOS Purch. Request Header"; xPurchaseRequest: Record "EOS Purch. Request Header"; var IsHandled: Boolean)

Fired before new document initialization procedure, when class is assigned and used to set no. series

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    New document header

  • xPurchaseRequest Record "EOS Purch. Request Header"

    Standard event signature

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitPRQDocNo

procedure OnAfterInitPRQDocNo(var PurchaseRequest: Record "EOS Purch. Request Header"; xPurchaseRequest: Record "EOS Purch. Request Header")

Fired after new document initialization procedure, when class is assigned and used to set no. series

Parameters / Return Value

  • PurchaseRequest Record "EOS Purch. Request Header"

    New document header

  • xPurchaseRequest Record "EOS Purch. Request Header"

    Standard event signature



EOS Labs -