R30425-9 StoreTransactionLine - Calculate Quantity
| Code | 30425-9 |
| Entity | Logistics.Inventory.StoreTransactionLines Entity |
| Name | CalculateQuantity |
| Attribute | Quantity |
| Layer | Front-End |
| Events | AttributeChanged(Product) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | if (Product!=null) if (QuantityUnit == null) QuantityUnit =Product.BaseMeasurementCategory.BaseUnit; Quantity = QuantityBase.ConvertTo(QuantityUnit, Product); |
| Description | When Product is changed, Quantity should be calculated as the converted value of Quantity Base in the measurement unit specified in Quantity Unit. |
| 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.