Codeunit 18122725 EOS066 Purch. Class Events Pub
Gathers all events published for purcahse area
procedure OnBeforeNewPurchDocFromClass(EOS066PurchDocumentClass: Record "EOS066 Purchase Document Class"; var Hidedialog: Boolean; var IsHandled: Boolean)
EOS066PurchDocumentClass Record "EOS066 Purchase Document Class"
Hidedialog Boolean
IsHandled Boolean
procedure OnAfterNewPurchDocFromClass(EOS066PurchDocumentClass: Record "EOS066 Purchase Document Class"; Hidedialog: Boolean)
EOS066PurchDocumentClass Record "EOS066 Purchase Document Class"
Hidedialog Boolean
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
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
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
Rec Record "Purchase Header"
New document header
BelowxRec Boolean
Standard event signature
xRec Record "Purchase Header"
Standard event signature
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
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
procedure OnAfterGetPurchDocDefaultClasses(PurchHeader: Record "Purchase Header"; var DocClass: Code[10])
Fired after default document class to use is retrived from setup
PurchHeader Record "Purchase Header"
New document header
DocClass Code[10]
Return document class code to use
procedure OnBeforeTestPurchNoSeries(PurchHeader: Record "Purchase Header"; var IsHandled: Boolean)
Fired before Document No. Series from class is tested to generate new document no.
PurchHeader Record "Purchase Header"
New document header
IsHandled Boolean
No following app standard code will be executed
procedure OnAfterTestPurchNoSeries(PurchHeader: Record "Purchase Header")
Fired after Document No. Series from class is tested to generate new document no.
PurchHeader Record "Purchase Header"
New document header
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
PurchHeader Record "Purchase Header"
New document header
xPurchHeader Record "Purchase Header"
Standard event signature
IsHandled Boolean
No following app standard code will be executed
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
PurchHeader Record "Purchase Header"
New document header
xPurchHeader Record "Purchase Header"
Standard event signature
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
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
procedure OnAfterSelectPurchDocClassFromList(PurchDocType: Enum "Purchase Document Type"; var ReturnClass: code[10])
Fired after selecting document class to use for a new document from list
PurchDocType Enum "Purchase Document Type"
Document type
ReturnClass code[10]
Return class code to use
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)
PurchHeader Record "Purchase Header"
Document you’re processing
IsHandled Boolean
No following app standard code will be executed
procedure OnAfterInitRecordFromPurchDocClass(var PurchHeader: Record "Purchase Header")
Fired after once record has been inserted, procedure fills record fields with class defaults (i.e. Reason)
PurchHeader Record "Purchase Header"
Document you’re processing
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)
PurchHeader Record "Purchase Header"
Document you’re processing
IsHandled Boolean
No following app standard code will be executed
procedure OnAfterInitNosFromPurchDocClass(var PurchHeader: Record "Purchase Header")
Fired before procedure fills no. series fields with class defaults (i.e. Posting No. Series)
PurchHeader Record "Purchase Header"
Document you’re processing
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
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
procedure OnAfterOnValidatePurchDocClass(var PurchHeader: Record "Purchase Header"; xPurchHeader: Record "Purchase Header"; var Hidedialog: Boolean)
Fired after document class code field is validate
PurchHeader Record "Purchase Header"
Document you’re processing
xPurchHeader Record "Purchase Header"
Standard event signature
Hidedialog Boolean
Specifies if UI is suppressed
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
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
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
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
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.