R30755-11 PaymentOrder - Convert Total Amount
| Code | 30755-11 |
| Entity | Finance.Payments.PaymentOrders Entity |
| Name | ConvertTotalAmount |
| Attribute | TotalAmount |
| Layer | Front-End |
| Events | AttributeChanged(TotalAmountCurrency) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | if( oldTotalAmountCurrency != newTotalAmountCurrency)
TotalAmount = new Amount(TotalAmount.Value, oldTotalAmountCurrency ).ConvertTo(newTotalAmountCurrency, PaymentOrder.CurrencyDirectory); |
| Description | When Total Amount Currency is changed, if the previous currency is different from the new currency, Total Amount should be converted from the old currency to 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.