Codeunit 18123712 EOS066 Document Class Mgt.
Gathers all functions used in document class management
procedure NotificationHandler(PageNoToOpen: Integer; Scope: NotificationScope; MessageText: Text; ActionText: Text; HasAction: Boolean)
Handles page notifications
PageNoToOpen Integer
Scope NotificationScope
MessageText Text
ActionText Text
HasAction Boolean
procedure GotoPage(Notif: Notification)
Handles page notifications
Notification
procedure NewSalesDocFromClass(EOS066SalesDocumentClass: Record "EOS066 Sales Document Class"; Hidedialog: Boolean)
Creates a new document already initialized with a specific class
EOS066SalesDocumentClass Record "EOS066 Sales Document Class"
Document class to use
Hidedialog Boolean
Specifies if UI is suppressed
procedure NewPurchDocFromClass(EOS066PurchDocumentClass: Record "EOS066 Purchase Document Class"; Hidedialog: Boolean)
Creates a new document already initialized with a specific class
EOS066PurchDocumentClass Record "EOS066 Purchase Document Class"
Document class to use
Hidedialog Boolean
Specifies if UI is suppressed
procedure OnNewSalesRecordEventFromPage(var Rec: Record "Sales Header"; BelowxRec: Boolean; var xRec: Record "Sales Header")
Handles new sales document creation from pages; ask and assigns specific class to use
Rec Record "Sales Header"
New sales header record
BelowxRec Boolean
Standard signature
xRec Record "Sales Header"
Old sales header record
procedure GetSalesDocDefaultClasses(SalesHeader: Record "Sales Header") DocClass: Code[10]
Gets default document class code from general CDL setup
SalesHeader Record "Sales Header"
Sales header from which retrieve document type
Returns Code[10]
Class found
procedure TestSalesNoSeries(SalesHeader: Record "Sales Header")
Tests if for the assigned document class a document no. serie is specified
SalesHeader Record "Sales Header"
Sales header you’re processing
procedure InitSalesDoc(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header")
Inits sales header no. using class document no. serie
SalesHeader Record "Sales Header"
Sales header you’re processing
xSalesHeader Record "Sales Header"
procedure InitRecordFromSalesDocClass(var SalesHeader: Record "Sales Header")
After record has been inserted, fills record fields with class defaults (i.e. Reason)
SalesHeader Record "Sales Header"
Sales header you’re processing
procedure InitNosFromSalesDocClass(var SalesHeader: Record "Sales Header")
Before record is inserted, fills no. series fields with class defaults (i.e. Posting No. Series)
SalesHeader Record "Sales Header"
Sales header you’re processing
procedure OnValidateSalesDocClass(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; Hidedialog: Boolean)
Fired when document class field is validated
SalesHeader Record "Sales Header"
Sales header you’re processing
xSalesHeader Record "Sales Header"
Sales header previous version
Hidedialog Boolean
procedure CheckSalesDocClassCompliance(var SalesHeader: Record "Sales Header"; xSalesHeader: Record "Sales Header"; Hidedialog: Boolean) IsCompliant: Boolean
Checks that document values (i.e. Reason) are compliant with belonging class
SalesHeader Record "Sales Header"
Sales header you’re processing
xSalesHeader Record "Sales Header"
Sales header previous version
Hidedialog Boolean
Specifies if UI is suppressed
Returns Boolean
TRUE: no incongruences found, FALSE: incongruences found
procedure OnNewPurchRecordEventFromPage(var Rec: Record "Purchase Header"; BelowxRec: Boolean; var xRec: Record "Purchase Header")
Handles new purchase document creation from pages; ask and assigns specific class to use
Rec Record "Purchase Header"
New purchase header record
BelowxRec Boolean
Standard signature
xRec Record "Purchase Header"
Old purchase header record
procedure GetPurchDocDefaultClasses(PurchaseHeader: Record "Purchase Header") DocClass: Code[10]
Gets default document class code from general CDL setup
PurchaseHeader Record "Purchase Header"
Purchase header from which retrieve document type
Returns Code[10]
Class found
procedure TestPurchNoSeries(PurchaseHeader: Record "Purchase Header")
Tests if for the assigned documebt class a document no. serie is specified
PurchaseHeader Record "Purchase Header"
Purchase header you’re processing
procedure OnValidatePurchDocClass(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Hidedialog: Boolean)
Fired when document class field is validated
PurchaseHeader Record "Purchase Header"
Purchase header you’re processing
xPurchaseHeader Record "Purchase Header"
Purchase header previous version
Hidedialog Boolean
procedure InitPurchDoc(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header")
Inits purchase header no. using class document no. serie
PurchaseHeader Record "Purchase Header"
Purchase header you’re processing
xPurchaseHeader Record "Purchase Header"
procedure InitRecordFromPurchDocClass(var PurchaseHeader: Record "Purchase Header")
After record has been inserted, fills record fields with class defaults (i.e. Reason)
PurchaseHeader Record "Purchase Header"
Purchase header you’re processing
procedure InitNosFromPurchDocClass(var PurchaseHeader: Record "Purchase Header")
Before record is inserted, fills no. series fields with class defaults (i.e. Posting No. Series)
PurchaseHeader Record "Purchase Header"
Purchase header you’re processing
procedure CheckPurchDocClassCompliance(var PurchaseHeader: Record "Purchase Header"; xPurchaseHeader: Record "Purchase Header"; Hidedialog: Boolean) IsCompliant: Boolean
Checks that document values (i.e. Reason) are compliant with belonging class
PurchaseHeader Record "Purchase Header"
Purchase header you’re processing
xPurchaseHeader Record "Purchase Header"
Purchase header previous version
Hidedialog Boolean
Specifies if UI is suppressed
Returns Boolean
TRUE: no incongruences found, FALSE: incongruences found
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.