Codeunit 18008317 EOS010 Legacy Event Subscriber
Codeunit 18008317 EOS010 Legacy Event Subscriber
Legacy Event Subscriber for Commission Management. This codeunit isolates all event subscribers related to the legacy salesperson/commission logic.
Key Features:
- Uses Manual EventSubscriberInstance to allow dynamic binding/unbinding
- Events are only active when the legacy sales engine is enabled
- When the new sales engine is enabled, these subscribers are unbound to avoid performance impact
Purpose: This architecture allows the system to completely disable legacy event processing when the new engine is active, preventing unnecessary event handler execution and improving Business Central performance. All methods are marked as Obsolete and will be removed when the legacy engine is fully deprecated.
Usage: Call BindOrUnBindCodeunitIfNeeded() during setup initialization to activate/deactivate the legacy event subscribers based on commission setup configuration.
Methods
UpdatePrimarySPOnSalesHeader
Obsolete
Pending: New Additional SalesPerson Engine (26.0)procedure UpdatePrimarySPOnSalesHeader(var Rec: Record "Sales Header")
Parameters / Return Value
- Rec
Record "Sales Header"
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.