erp.type | erp.entity |
---|---|
front-end-business-rule |
Logistics.Wms.WarehouseWorkers |
+----------------------+-----------------------------------------------------------------------------------------------+ | 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.