Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 4.32 KB

R31465-2.md

File metadata and controls

43 lines (41 loc) · 4.32 KB

erp.type: front-end-business-rule erp.entity: Finance.Assets.AssetOrders

R31465-2 Asset Order - Convert Asset Value

+-----------------------------+---------------------------------------------------------------------------------------+ | Code | R31465-2 | +-----------------------------+---------------------------------------------------------------------------------------+ | Entity | @Finance.Assets.AssetOrders | +-----------------------------+---------------------------------------------------------------------------------------+ | Name | ConvertAssetValue | +-----------------------------+---------------------------------------------------------------------------------------+ | Attribute | AssetValue | +-----------------------------+---------------------------------------------------------------------------------------+ | Layer | Front-End | +-----------------------------+---------------------------------------------------------------------------------------+ | Events | AttributeChanged(AssetValueCurrency) | +-----------------------------+---------------------------------------------------------------------------------------+ | Priority | Normal | +-----------------------------+---------------------------------------------------------------------------------------+ | Modify | YES | +-----------------------------+---------------------------------------------------------------------------------------+ | Applicable Legislations | ALL // no condition | | | needed | +-----------------------------+---------------------------------------------------------------------------------------+ | Action | IF(oldCurrency!=null && newCurrency!=null && oldCurrency!=newCurrency) | | |

| | | AssetValue = new Amount(AssetValue.Value, oldCurrency).ConvertTo(AssetValueCurrency, | | | Document.CurrencyDirectory); | +-----------------------------+---------------------------------------------------------------------------------------+ | Description | If Asset Value Currency is changed and it is different from the old one, Asset Value | | | should be converted from the old currency to the new one. | +-----------------------------+---------------------------------------------------------------------------------------+ | 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.