R31508-23 Purchase Invoice Line - Convert Unit Price
Code | 31508-23 |
Entity | Logistics.Procurement.PurchaseInvoiceLines Entity |
Name | Convert Unit Price |
Attribute | UnitPrice |
Layer | Front-End |
Events | AttributeChanged(QuantityUnit) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | ration = GetRatio(oldQuantityUnit, newQuantityUnit)
UnitPrice = (ratio.Divisor *UnitPrice / ratio.Multiplier).RoundUnitPrice(); |
Description | When Quantity Unit is changed, Unit Price should be recalculated using the ratio between old
Quantity Unit and new Quantity Unit.
(RecalcExpression) |
Message | |
Version | Introduced: 21 |
Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.