Skip to content

Latest commit

 

History

History
47 lines (46 loc) · 4.99 KB

R31422-1.md

File metadata and controls

47 lines (46 loc) · 4.99 KB
erp.type erp.entity
front-end-business-rule
Finance.Payments.PaymentTransactions

R31422-1 Payment Transaction- Change Total Amount Currency

+----------------------+-----------------------------------------------------------------------------------------------+ | Code | 31422-1 | +----------------------+-----------------------------------------------------------------------------------------------+ | Entity | @Finance.Payments.PaymentTransactions | +----------------------+-----------------------------------------------------------------------------------------------+ | Name | ChangeTotalAmountCurrency | +----------------------+-----------------------------------------------------------------------------------------------+ | Attribute | TotalAmountCurrency | +----------------------+-----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+-----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(PaymentAccount) | +----------------------+-----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+-----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+-----------------------------------------------------------------------------------------------+ | **Applicable | ALL // no condition needed | | Legislations** | | +----------------------+-----------------------------------------------------------------------------------------------+ | 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 | +----------------------+-----------------------------------------------------------------------------------------------+