R20750-6 InvoiceOrder - Payment Account Enterprise Company Should Equal EC

Code R20750-6
Entity Crm.Invoicing.InvoiceOrders 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 invoice order contains a payment account, and the payment account contains an enterprise company, then make sure that the invoice 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.