R30768-5 PaymentSlip - Set Covered Order Amount From Amount
Code | 30768-5 |
Entity | Finance.Payments.PaymentSlips Entity |
Name | SetCoveredOrderAmountFromAmount |
Attribute | CoveredOrderAmount |
Layer | Front-End |
Events | AttributeChanged(CurrencyDirectory) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL // no condition needed |
Action | IF (PaymentSlip.DocumentCurrency!=null) {foreach (PaymentSlip.PaymentSlipAmount ){ foreach (PaymentSlipAmount.PaymentSlipLine){ if (l.PaymentOrder != null) l.CoveredOrderAmount = l.Amount.ConvertTo(l.PaymentOrder.TotalAmountCurrency, l.PaymentSlipAmount.PaymentSlip.CurrencyDirectory); }} } |
Description | When Currency Directory in the Payment Slip is changed, Covered Order Amount in the Payment Slip's lines is calculated from Amount using the newly selected Currency Directory. |
Message | |
Version | Introduced: 2020.1
Updated: - |
Revocable | YES |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.