Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 4.35 KB

R30802-1.md

File metadata and controls

43 lines (41 loc) · 4.35 KB
erp.type erp.entity
front-end-business-rule
Logistics.Wms.WarehouseWorkers

R30802-1 WarehouseWorker - Set Active To

+----------------------+-----------------------------------------------------------------------------------------------+ | Code | 30802-1 | +----------------------+-----------------------------------------------------------------------------------------------+ | Entity | @Logistics.Wms.WarehouseWorkers | +----------------------+-----------------------------------------------------------------------------------------------+ | Name | SetActiveTo | +----------------------+-----------------------------------------------------------------------------------------------+ | Attribute | ActiveTo | +----------------------+-----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+-----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(IsActive) | +----------------------+-----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+-----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+-----------------------------------------------------------------------------------------------+ | **Applicable | ALL // no condition needed | | Legislations** | | +----------------------+-----------------------------------------------------------------------------------------------+ | Action | if (IsActive.OldValue == true && WarehouseWorker.IsActive == false) | | | { | | | WarehouseWorker.ActiveTo = DateTime.Today; | | | } | +----------------------+-----------------------------------------------------------------------------------------------+ | Description | If Is_Active was "true", but now becomes "false", Active_To should be set to current | | | date. | +----------------------+-----------------------------------------------------------------------------------------------+ | Message | | +----------------------+-----------------------------------------------------------------------------------------------+ | Version | Introduced: 2020.1 | +----------------------+-----------------------------------------------------------------------------------------------+ | Revocable | YES | +----------------------+-----------------------------------------------------------------------------------------------+

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.