R20750-2 PaymentOrder - Payment Account Enterprise Company Should Equal EC

Code R20750-2
Entity Finance.Payments.PaymentOrders Entity
Name validationRule_paymentAccountEnterpriseCompanyShouldEqualEC
Attribute PaymentAccount, EnterpriseCompany
Layer Back-End
Events Planning +
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action If PaymentAccount != Null

, validate that PaymentAccount.EnterpriseCompany == EnterpriseCompany OR PaymentAccount.EnterpriseCompany = Null
Description If the payment order contains a payment account, and the payment account contains an enterprise company, then make sure that the payment order enterprise company is the same as the payment account enterprise company.
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.