Code |
31422-1 |
Entity |
Finance.Payments.PaymentTransactions Entity |
Name |
ChangeTotalAmountCurrency |
Attribute |
TotalAmountCurrency |
Layer |
Front-End |
Events |
AttributeChanged(PaymentAccount) |
Priority |
Normal |
Modify |
YES |
Applicable
Legislations |
ALL // no condition needed |
Action |
if (PaymentAccount.Currency != null AND PaymentAccount.Currency != 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: 21
|
Revocable |
YES |