Codeunit 18122725 EOS066 Purch. Class Events Pub

Codeunit 18122725 EOS066 Purch. Class Events Pub

Gathers all events published for purcahse area

Events

OnBeforeNewPurchDocFromClass

procedure OnBeforeNewPurchDocFromClass(EOS066PurchDocumentClass: Record "EOS066 Purchase Document Class"; var Hidedialog: Boolean; var IsHandled: Boolean)

Parameters / Return Value

  • EOS066PurchDocumentClass Record "EOS066 Purchase Document Class"

  • Hidedialog Boolean

  • IsHandled Boolean


OnAfterNewPurchDocFromClass

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

Parameters / Return Value

  • EOS066PurchDocumentClass Record "EOS066 Purchase Document Class"

  • Hidedialog Boolean


OnBeforeOnNewPurchRecordEventFromPage

procedure OnBeforeOnNewPurchRecordEventFromPage(VAR Rec: Record "Purchase Header"; BelowxRec: Boolean; VAR xRec: Record "Purchase Header"; var IsHandled: Boolean)

Fired before a new document is created starting from standard page

Parameters / Return Value

  • Rec Record "Purchase Header"

    New document header

  • BelowxRec Boolean

    Standard event signature

  • xRec Record "Purchase Header"

    Standard event signature

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterOnNewPurchRecordEventFromPage

procedure OnAfterOnNewPurchRecordEventFromPage(VAR Rec: Record "Purchase Header"; BelowxRec: Boolean; VAR xRec: Record "Purchase Header")

Fired after a new document is created starting from standard page

Parameters / Return Value

  • Rec Record "Purchase Header"

    New document header

  • BelowxRec Boolean

    Standard event signature

  • xRec Record "Purchase Header"

    Standard event signature


OnBeforeGetPurchDocDefaultClasses

procedure OnBeforeGetPurchDocDefaultClasses(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean; var DocClass: Code[10])

Fired before default document class to use is retrived from setup

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    New document header

  • IsHandled Boolean

    No following app standard code will be executed

  • DocClass Code[10]

    Return document class code to use


OnAfterGetPurchDocDefaultClasses

procedure OnAfterGetPurchDocDefaultClasses(PurchHeader: Record "Purchase Header"; var DocClass: Code[10])

Fired after default document class to use is retrived from setup

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    New document header

  • DocClass Code[10]

    Return document class code to use


OnBeforeTestPurchNoSeries

procedure OnBeforeTestPurchNoSeries(PurchHeader: Record "Purchase Header"; var IsHandled: Boolean)

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    New document header

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterTestPurchNoSeries

procedure OnAfterTestPurchNoSeries(PurchHeader: Record "Purchase Header")

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    New document header


OnBeforeInitPurchDoc

procedure OnBeforeInitPurchDoc(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; var IsHandled: Boolean)

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    New document header

  • xPurchHeader Record "Purchase Header"

    Standard event signature

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitPurchDoc

procedure OnAfterInitPurchDoc(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header")

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    New document header

  • xPurchHeader Record "Purchase Header"

    Standard event signature


OnBeforeSelectPurchDocClassFromList

procedure OnBeforeSelectPurchDocClassFromList(PurchDocType: Enum "Purchase Document Type"; var IsHandled: Boolean; var ReturnClass: code[10])

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

Parameters / Return Value

  • PurchDocType Enum "Purchase Document Type"

    Document type

  • IsHandled Boolean

    No following app standard code will be executed

  • ReturnClass code[10]

    Return class code to use


OnAfterSelectPurchDocClassFromList

procedure OnAfterSelectPurchDocClassFromList(PurchDocType: Enum "Purchase Document Type"; var ReturnClass: code[10])

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

Parameters / Return Value

  • PurchDocType Enum "Purchase Document Type"

    Document type

  • ReturnClass code[10]

    Return class code to use


OnBeforeInitRecordFromPurchDocClass

procedure OnBeforeInitRecordFromPurchDocClass(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean)

Fired before once record has been inserted, procedure fills record fields with class defaults (i.e. Reason)

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    Document you’re processing

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitRecordFromPurchDocClass

procedure OnAfterInitRecordFromPurchDocClass(var PurchHeader: Record "Purchase Header")

Fired after once record has been inserted, procedure fills record fields with class defaults (i.e. Reason)

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    Document you’re processing


OnBeforeInitNosFromPurchDocClass

procedure OnBeforeInitNosFromPurchDocClass(var PurchHeader: Record "Purchase Header"; var IsHandled: Boolean)

Fired before procedure fills no. series fields with class defaults (i.e. Posting No. Series)

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    Document you’re processing

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitNosFromPurchDocClass

procedure OnAfterInitNosFromPurchDocClass(var PurchHeader: Record "Purchase Header")

Fired before procedure fills no. series fields with class defaults (i.e. Posting No. Series)

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    Document you’re processing


OnBeforeOnValidatePurchDocClass

procedure OnBeforeOnValidatePurchDocClass(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; var Hidedialog: Boolean; var IsHandled: Boolean)

Fired before document class code field is validate

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    Document you’re processing

  • xPurchHeader Record "Purchase Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterOnValidatePurchDocClass

procedure OnAfterOnValidatePurchDocClass(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; var Hidedialog: Boolean)

Fired after document class code field is validate

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    Document you’re processing

  • xPurchHeader Record "Purchase Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed


OnBeforeCheckPurchDocClassCompliance

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

Fired before checking if document values are compliant with related class

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Document you’re processing

  • xPurchaseHeader Record "Purchase Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • IsHandled Boolean

    No following app standard code will be executed

  • IsCompliant Boolean

    Return value


OnAfterCheckPurchDocClassCompliance

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

Fired after checking if document values are compliant with related class

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    Document you’re processing

  • xPurchaseHeader Record "Purchase Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • IsCompliant Boolean

    Return value



EOS Labs -