Skip to content

Latest commit

 

History

History
46 lines (44 loc) · 4.71 KB

R30424-5.md

File metadata and controls

46 lines (44 loc) · 4.71 KB
erp.type erp.entity
front-end-business-rule
Logistics.Inventory.StoreOrderLines

R30424-5 Store Order Line - Set Line Cost

+----------------------+-----------------------------------------------------------------------------------------------+ | 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.