R30768-2 PaymentSlipLine - Set Payment Slip Amount Payment Reason
Code | 30768-2 |
Entity | Finance.Payments.PaymentSlipLines Entity |
Name | SetPaymentSlipAmountPaymentReason |
Attribute | PaymentSlipAmount.PaymentReason |
Layer | Front-End |
Events | AttributeChanged(PaymentSlipAmount) |
Priority | Normal |
Modify | YES |
Applicable Legislations | ALL//no condition needed |
Action | IF (PaymentSlipLines.PaymentSlipAmount != null AND PaymentSlipLines.PaymentSlipAmount.PaymentReason == null) { PaymentSlipLines.PaymentSlipAmount.PaymentReason = PaymentSlipLines.Transaction.Get<PaymentReason> (PaymentReasonsRepository.PartySystemPaymentReasonId); } |
Description | When a line is added to a Payment Slip Amount, if the Payment Slip Amount's Payment Reason is null, it is filled with party system payment reason. |
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.