R30755-7 PaymentOrder - Change Total Amount Currency
Code | 30755-7 |
Entity | Finance.Payments.PaymentOrders Entity |
Name | ChangeTotalAmountCurrency |
Attribute | TotalAmountCurrency |
Layer | Front-End |
Events | AttributeChanged(PaymentAccount) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | if (PaymentOrder.PaymentAccount.Currency != null AND PaymentOrder.PaymentAccount.Currency !=
PaymentOrder.TotalAmountCurrency)
{
TotalAmountCurrency = PaymentAccount.Currency;
IssueWarning(Finance_Payments_PaymentOrderCurrencyChanged);
}
|
Description | When Payment Account is changed, if the currency of the new payment account is not null and is different from the Total Amount Currency, Total Amount Currency should be changed to the currency of the payment account. |
Message | The currency is changed to match the currency of the selected payment account. You may want to correct the total amount. |
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.