Codeunit 18059973 EOS Update Hier. Rel. Req.
Codeunit 18059973 EOS Update Hier. Rel. Req.
Methods
UpdateHierarchyRelReqDetail
procedure UpdateHierarchyRelReqDetail(HierarchyRelDetail: Record "EOS Hierarchy Relation Detail")
This function allows to change status of a hierarchy relation request detail to processed or canceled
Parameters / Return Value
HierarchyRelDetail
Record "EOS Hierarchy Relation Detail"
The hierarchy relation request line to process
SetHierarchyRelRequest
procedure SetHierarchyRelRequest(HierarchyRelRequestP: Record "EOS Hierarchy Relation Request")
Function to set the hierarchy relation request to process
Parameters / Return Value
HierarchyRelRequestP
Record "EOS Hierarchy Relation Request"
The hierarchy relation request to process
SetNewHierRelRequestStatus
procedure SetNewHierRelRequestStatus(NewHierRelRequestStatusP: Enum "EOS Hier. Rel. Request Status")
Function to set the new hierarchy relation request status
Parameters / Return Value
NewHierRelRequestStatusP
Enum "EOS Hier. Rel. Request Status"
The new hierarchy relation request status
UpdateSalesSnapshotByItem
procedure UpdateSalesSnapshotByItem(Item: Record Item)
Parameters / Return Value
- Item
Record "Item"
UpdatePurchaseSnapshotByItem
procedure UpdatePurchaseSnapshotByItem(Item: Record Item)
Parameters / Return Value
- Item
Record "Item"
UpdateSalesSnapshotByCustomer
procedure UpdateSalesSnapshotByCustomer(Customer: Record Customer)
Parameters / Return Value
- Customer
Record "Customer"
UpdatePurchaseSnapshotByVendor
procedure UpdatePurchaseSnapshotByVendor(Vendor: Record Vendor)
Parameters / Return Value
- Vendor
Record "Vendor"
Events
OnAfterUpdateHierarchyRelReqDetail
local procedure OnAfterUpdateHierarchyRelReqDetail(HierarchyRelationDetail: Record "EOS Hierarchy Relation Detail"; NewHierRelRequestStatus: Enum "EOS Hier. Rel. Request Status")
This event is raised after the update of a Hierarchy Relation Detail.
Parameters / Return Value
HierarchyRelationDetail
Record "EOS Hierarchy Relation Detail"
The record of Hierarchy Relation Detail to update
NewHierRelRequestStatus
Enum "EOS Hier. Rel. Request Status"
The new status of Hierarchy Relation Detail
OnBeforeUpdateHierarchyRelReqDetail
local procedure OnBeforeUpdateHierarchyRelReqDetail(var HierarchyRelDetail: Record "EOS Hierarchy Relation Detail")
Raised before a hierarchy request detail is being processed.
Parameters / Return Value
HierarchyRelDetail
Record "EOS Hierarchy Relation Detail"
The hierarchy detail being processed.
OnUpdateItemOnBeforeModify
local procedure OnUpdateItemOnBeforeModify(var Item: Record Item; var HierarchyArray: array[7] of Text)
Raised after the hierarchy fields on an item have been updated, before the record is actually modified.
Parameters / Return Value
Item
Record "Item"
The item.
HierarchyArray
Text
The hierarchy array.
OnUpdateCustomerOnBeforeModify
local procedure OnUpdateCustomerOnBeforeModify(var Customer: Record Customer; var HierarchyArray: array[7] of Text)
Raised after the hierarchy fields on a customer have been updated, before the record is actually modified.
Parameters / Return Value
Customer
Record "Customer"
The customer.
HierarchyArray
Text
The hierarchy array.
OnUpdateVendorOnBeforeModify
local procedure OnUpdateVendorOnBeforeModify(var Vendor: Record Vendor; var HierarchyArray: array[7] of Text)
Raised after the hierarchy fields on a vendor have been updated, before the record is actually modified.
Parameters / Return Value
Vendor
Record "Vendor"
The vendor.
HierarchyArray
Text
The hierarchy array.
OnAfterChangeItemHierarchy
local procedure OnAfterChangeItemHierarchy(var Item: Record Item; HierarchyRelDetail: Record "EOS Hierarchy Relation Detail"; OldUpperLevel: Code[20])
Raised after the hierarchy on an item has been changed. The record is not modified after this event and you need to call modify yourself, if required.
Parameters / Return Value
Item
Record "Item"
The item.
HierarchyRelDetail
Record "EOS Hierarchy Relation Detail"
The hierarchy relation detail.
OldUpperLevel
Code[20]
The old upper level.
OnAfterChangeCustomerHierarchy
local procedure OnAfterChangeCustomerHierarchy(var Customer: Record Customer; HierarchyRelDetail: Record "EOS Hierarchy Relation Detail"; OldUpperLevel: Code[20])
Raised after the hierarchy on a customer has been changed. The record is not modified after this event and you need to call modify yourself, if required.
Parameters / Return Value
Customer
Record "Customer"
The customer.
HierarchyRelDetail
Record "EOS Hierarchy Relation Detail"
The hierarchy relation detail.
OldUpperLevel
Code[20]
The old upper level.
OnAfterChangeVendorHierarchy
local procedure OnAfterChangeVendorHierarchy(var Vendor: Record Vendor; HierarchyRelDetail: Record "EOS Hierarchy Relation Detail"; OldUpperLevel: Code[20])
Raised after the hierarchy on a vendor has been changed. The record is not modified after this event and you need to call modify yourself, if required.
Parameters / Return Value
Vendor
Record "Vendor"
The vendor.
HierarchyRelDetail
Record "EOS Hierarchy Relation Detail"
The hierarchy relation detail.
OldUpperLevel
Code[20]
The old upper level.
Feedback
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.