R30425-5 StoreTransactionLine - Set Unit Cost
Code | 30425-5 |
Entity | Logistics.Inventory.StoreTransactionLines Entity |
Name | SetUnitCost |
Attribute | UnitCost |
Layer | Front-End |
Events | AttributeChanged(LineCost) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | if (LineCost==null) UnitCost = 0; else if(l.Quantity.Value!=0)UnitCost = LineCost /Quantity.Value ; else UnitCost = LineCost; |
Description | When Line Cost is changed, Unit Cost should be recalculated. It should be equal to the Line Cost divided by the Quantity. If Line Cost is null, Unit Cost is null. If Quantity is 0, Unit Cost is equal to Line 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.