Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 4.38 KB

R30708-5.md

File metadata and controls

43 lines (41 loc) · 4.38 KB

erp.type: front-end-business-rule erp.entity: Finance.Payments.BulkPaymentOrderLines

R30708-5 BulkPaymentOrderLine - Convert Invoice Amount

+----------------------+-----------------------------------------------------------------------------------------------+ | Code | 30708-5 | +----------------------+-----------------------------------------------------------------------------------------------+ | Entity | @Finance.Payments.BulkPaymentOrderLines | +----------------------+-----------------------------------------------------------------------------------------------+ | Name | ConvertInvoicelAmount | +----------------------+-----------------------------------------------------------------------------------------------+ | Attribute | InvoiceAmount | +----------------------+-----------------------------------------------------------------------------------------------+ | Layer | Front-End | +----------------------+-----------------------------------------------------------------------------------------------+ | Events | AttributeChanged(InvoiceAmountCurrency) | +----------------------+-----------------------------------------------------------------------------------------------+ | Priority | Normal | +----------------------+-----------------------------------------------------------------------------------------------+ | Modify | YES | +----------------------+-----------------------------------------------------------------------------------------------+ | **Applicable | ALL // no condition needed | | Legislations** | | +----------------------+-----------------------------------------------------------------------------------------------+ | Action | if (InvoicelAmount!=null && BulkPaymentOrder.IsCurrencyChangeValid(oldCurrency, newCurrency) | | | && oldCurrency != null && newCurrency != null) | | | InvoicelAmount.Value = InvoiceAmount.Value.ConvertToOrDefault(newCurrency, | | | l.BulkPaymentOrder.CurrencyDirectory) | +----------------------+-----------------------------------------------------------------------------------------------+ | Description | When Invoice Amount Currency is changed, if its previous value was not null, Invoice | | | 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.