erp.type | erp.entity |
---|---|
front-end-business-rule |
Finance.Payments.PaymentSlipAmounts |
+----------------------+-----------------------------------------------------------------------------------------------+
| Code | 30768-9 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Finance.Payments.PaymentSlipAmounts |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | ValidatePartyChange |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | Party |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Front-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | AttributeChanging(Party) |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | YES |
+----------------------+-----------------------------------------------------------------------------------------------+
| **Applicable | ALL // no condition needed |
| Legislations** | |
+----------------------+-----------------------------------------------------------------------------------------------+
| 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.