Skip to content

Latest commit

 

History

History
42 lines (40 loc) · 4.25 KB

R30768-9.md

File metadata and controls

42 lines (40 loc) · 4.25 KB
erp.type erp.entity
front-end-business-rule
Finance.Payments.PaymentSlipAmounts

R30768-9 PaymentSlipAmount - Validate Party Change

+----------------------+-----------------------------------------------------------------------------------------------+ | 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.