+----------------------+-----------------------------------------------------------------------------------------------+ | Code | 30708-4 | +----------------------+-----------------------------------------------------------------------------------------------+ | Entity | @Finance.Payments.BulkPaymentOrderLines | +----------------------+-----------------------------------------------------------------------------------------------+ | Name | ConvertTotalAmount | +----------------------+-----------------------------------------------------------------------------------------------+ | Attribute | TotalAmount | +----------------------+-----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+-----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(TotalAmountCurrency) | +----------------------+-----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+-----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+-----------------------------------------------------------------------------------------------+ | **Applicable | ALL // no condition needed | | Legislations** | | +----------------------+-----------------------------------------------------------------------------------------------+ | Action | if (BulkPaymentOrder.IsCurrencyChangeValid(oldCurrency, newCurrency) && oldCurrency != null | | | && newCurrency != null)) | | | TotalAmount.Value = TotalAmount.Value.ConvertToOrDefault(newCurrency, | | | l.BulkPaymentOrder.CurrencyDirectory) | +----------------------+-----------------------------------------------------------------------------------------------+ | Description | When Total Amount Currency is changed, if its previous value was not null, Total Amount's | | | value should be recalculated in the new currency. | +----------------------+-----------------------------------------------------------------------------------------------+ | 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.