Codeunit 18122724 EOS066 Sales Class Events Pub

Codeunit 18122724 EOS066 Sales Class Events Pub

Gathers all events published for sales area

Events

OnBeforeNewSalesDocFromClass

procedure OnBeforeNewSalesDocFromClass(var EOS066SalesDocumentClass: Record "EOS066 Sales Document Class"; var Hidedialog: Boolean; var IsHandled: Boolean)

Parameters / Return Value

  • EOS066SalesDocumentClass Record "EOS066 Sales Document Class"

  • Hidedialog Boolean

  • IsHandled Boolean


OnAfterNewSalesDocFromClass

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

Fired after a new document is created starting from class list page

Parameters / Return Value

  • EOS066SalesDocumentClass Record "EOS066 Sales Document Class"

    Document class to be used

  • Hidedialog Boolean

    Specifies if UI is suppressed


OnBeforeOnNewSalesRecordEventFromPage

procedure OnBeforeOnNewSalesRecordEventFromPage(VAR Rec: Record "Sales Header"; BelowxRec: Boolean; VAR xRec: Record "Sales Header"; var IsHandled: Boolean)

Fired before a new document is created starting from standard page

Parameters / Return Value

  • Rec Record "Sales Header"

    New document header

  • BelowxRec Boolean

    Standard event signature

  • xRec Record "Sales Header"

    Standard event signature

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterOnNewSalesRecordEventFromPage

procedure OnAfterOnNewSalesRecordEventFromPage(VAR Rec: Record "Sales Header"; BelowxRec: Boolean; VAR xRec: Record "Sales Header")

Fired after a new document is created starting from standard page

Parameters / Return Value

  • Rec Record "Sales Header"

    New document header

  • BelowxRec Boolean

    Standard event signature

  • xRec Record "Sales Header"

    Standard event signature


OnBeforeGetSalesDocDefaultClasses

procedure OnBeforeGetSalesDocDefaultClasses(SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocClass: Code[10])

Fired before default document class to use is retrived from setup

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    New document header

  • IsHandled Boolean

    No following app standard code will be executed

  • DocClass Code[10]

    Return document class code to use


OnAfterGetSalesDocDefaultClasses

procedure OnAfterGetSalesDocDefaultClasses(SalesHeader: Record "Sales Header"; var DocClass: Code[10])

Fired after default document class to use is retrived from setup

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    New document header

  • DocClass Code[10]

    Return document class code to use


OnBeforeTestSalesNoSeries

procedure OnBeforeTestSalesNoSeries(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    New document header

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterTestSalesNoSeries

procedure OnAfterTestSalesNoSeries(SalesHeader: Record "Sales Header")

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    New document header


OnBeforeInitSalesDoc

procedure OnBeforeInitSalesDoc(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; var IsHandled: Boolean)

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    New document header

  • xSalesHeader Record "Sales Header"

    Standard event signature

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitSalesDoc

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

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    New document header

  • xSalesHeader Record "Sales Header"

    Standard event signature


OnBeforeSelectSalesDocClassFromList

procedure OnBeforeSelectSalesDocClassFromList(SalesDocType: Enum "Sales 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

  • SalesDocType Enum "Sales Document Type"

    Document type

  • IsHandled Boolean

    No following app standard code will be executed

  • ReturnClass code[10]

    Return class code to use


OnAfterSelectSalesDocClassFromList

procedure OnAfterSelectSalesDocClassFromList(SalesDocType: Enum "Sales Document Type"; var ReturnClass: code[10])

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

Parameters / Return Value

  • SalesDocType Enum "Sales Document Type"

    Document type

  • ReturnClass code[10]

    Return class code to use


OnBeforeInitRecordFromSalesDocClass

procedure OnBeforeInitRecordFromSalesDocClass(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitRecordFromSalesDocClass

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

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing


OnBeforeInitNosFromSalesDocClass

procedure OnBeforeInitNosFromSalesDocClass(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterInitNosFromSalesDocClass

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

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

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing


OnBeforeOnValidateSalesDocClass

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

Fired before document class code field is validate

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing

  • xSalesHeader Record "Sales Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • IsHandled Boolean

    No following app standard code will be executed


OnAfterOnValidateSalesDocClass

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

Fired after document class code field is validate

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing

  • xSalesHeader Record "Sales Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed


OnBeforeCheckSalesDocClassCompliance

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

Fired before checking if document values are compliant with related class

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing

  • xSalesHeader Record "Sales 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


OnAfterCheckSalesDocClassCompliance

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

Fired after checking if document values are compliant with related class

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    Document you’re processing

  • xSalesHeader Record "Sales Header"

    Standard event signature

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • IsCompliant Boolean

    Return value



EOS Labs -