R20750-1 BulkPaymentOrder - Payment Account Enterprise Company Should Equal EC

Code R20750-1
Entity Finance.Payments.BulkPaymentOrders Entity
Name validationRule_paymentAccountEnterpriseCompanyShouldEqualEC
Attribute BulkPaymentOrderLines.PaymentAccount, EnterpriseCompany
Layer Back-End
Events Planning +
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action If (Lines.PaymentAccounts != Null)

, validate that for all of the lines: PaymentAccount.EnterpriseCompany == EnterpriseCompany OR PaymentAccount.EnterpriseCompany = Null
Description If the bulk payment order lines contain payment accounts, and those payment accounts contain enterprise companies, then make sure that the bulk payment order enterprise company is the same as all of the payment accounts enterprise companies.
Message Use the message from: R20750-3 PaymentSlip - Payment Account Enterprise Company Should Equal EC
Version Introduced: 2015
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.