R20750-7 Invoice - Payment Account Enterprise Company Should Equal EC

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