erp.type | erp.entity |
---|---|
front-end-business-rule |
Logistics.Inventory.StoreOrderLines |
+----------------------+-----------------------------------------------------------------------------------------------+
| Code | 30424-5 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Logistics.Inventory.StoreOrderLines |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | SetLineCost |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | LineCost |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Front-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | AttributeChanged(UnitCost, Quantity) |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | YES |
+----------------------+-----------------------------------------------------------------------------------------------+
| **Applicable | ALL // no condition needed |
| Legislations** | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | if(UnitCost==null) |
| |
|
| | LineCost=0 |
| |
|
| | ELSE |
| |
|
| | LineCost = UnitCost*Quantity |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | When Unit Cost or Quantity are changed, Line Cost is recalculated. It should be equal to the |
| | product of Quantity and Unit Cost. |
+----------------------+-----------------------------------------------------------------------------------------------+
| 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.