R30768-9 PaymentSlipAmount - Validate Party Change
| Code | 30768-9 |
| Entity | Finance.Payments.PaymentSlipAmounts Entity |
| Name | ValidatePartyChange |
| Attribute | Party |
| Layer | Front-End |
| Events | AttributeChanging(Party) |
| Priority | Normal |
| Modify | YES |
| Applicable Legislations | ALL // no condition needed |
| Action | if (PaymentSlipAmount.PaymentSlipLines.Count > 0) throw error
|
| Description | Changing the Party is not allowed if there are Payment Slip Lines for this Payment Slip Amount. |
| Message | The change of field 'Party' is not allowed while there are lines for this party. |
| 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.