Codeunit 18122724 EOS066 Sales Class Events Pub
Gathers all events published for sales area
procedure OnBeforeNewSalesDocFromClass(var EOS066SalesDocumentClass: Record "EOS066 Sales Document Class"; var Hidedialog: Boolean; var IsHandled: Boolean)
EOS066SalesDocumentClass Record "EOS066 Sales Document Class"
Hidedialog Boolean
IsHandled Boolean
procedure OnAfterNewSalesDocFromClass(EOS066SalesDocumentClass: Record "EOS066 Sales Document Class"; Hidedialog: Boolean)
Fired after a new document is created starting from class list page
EOS066SalesDocumentClass Record "EOS066 Sales Document Class"
Document class to be used
Hidedialog Boolean
Specifies if UI is suppressed
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
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
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
Rec Record "Sales Header"
New document header
BelowxRec Boolean
Standard event signature
xRec Record "Sales Header"
Standard event signature
procedure OnBeforeGetSalesDocDefaultClasses(SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var DocClass: Code[10])
Fired before default document class to use is retrived from setup
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
procedure OnAfterGetSalesDocDefaultClasses(SalesHeader: Record "Sales Header"; var DocClass: Code[10])
Fired after default document class to use is retrived from setup
SalesHeader Record "Sales Header"
New document header
DocClass Code[10]
Return document class code to use
procedure OnBeforeTestSalesNoSeries(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
Fired before Document No. Series from class is tested to generate new document no.
SalesHeader Record "Sales Header"
New document header
IsHandled Boolean
No following app standard code will be executed
procedure OnAfterTestSalesNoSeries(SalesHeader: Record "Sales Header")
Fired after Document No. Series from class is tested to generate new document no.
SalesHeader Record "Sales Header"
New document header
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
SalesHeader Record "Sales Header"
New document header
xSalesHeader Record "Sales Header"
Standard event signature
IsHandled Boolean
No following app standard code will be executed
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
SalesHeader Record "Sales Header"
New document header
xSalesHeader Record "Sales Header"
Standard event signature
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
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
procedure OnAfterSelectSalesDocClassFromList(SalesDocType: Enum "Sales Document Type"; var ReturnClass: code[10])
Fired after selecting document class to use for a new document from list
SalesDocType Enum "Sales Document Type"
Document type
ReturnClass code[10]
Return class code to use
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)
SalesHeader Record "Sales Header"
Document you’re processing
IsHandled Boolean
No following app standard code will be executed
procedure OnAfterInitRecordFromSalesDocClass(var SalesHeader: Record "Sales Header")
Fired after once record has been inserted, procedure fills record fields with class defaults (i.e. Reason)
SalesHeader Record "Sales Header"
Document you’re processing
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)
SalesHeader Record "Sales Header"
Document you’re processing
IsHandled Boolean
No following app standard code will be executed
procedure OnAfterInitNosFromSalesDocClass(var SalesHeader: Record "Sales Header")
Fired before procedure fills no. series fields with class defaults (i.e. Posting No. Series)
SalesHeader Record "Sales Header"
Document you’re processing
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
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
procedure OnAfterOnValidateSalesDocClass(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; var Hidedialog: Boolean)
Fired after document class code field is validate
SalesHeader Record "Sales Header"
Document you’re processing
xSalesHeader Record "Sales Header"
Standard event signature
Hidedialog Boolean
Specifies if UI is suppressed
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
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
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
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
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.