R27470 Dealer - Single Dealer Per Enterprise Company
Code | R27470 |
Entity | Crm.Dealers Entity |
Name | SingleDealerPerEnterpriseCompany |
Attribute | EnterpriseCompany |
Layer | Back-End |
Events | Commit |
Modify | NO |
Action | Validate that:
The party of the dealer has maximum one dealer definition (including the current one) that points to it for each Enterprise Company. NOTE: If 'Dealer. EnterpriseCompany=NULL', then the dealer is defined for all Enterprise companies. Parties with such a dealer definition pointing to them, cannot have more dealer definitions. |
Description | Dealer is a definition which originates from Party ( like Customer and Supplier, for example).
Which means that every Dealer always refers to only one particular Party.
We can manually choose the Enterprise Company for which the particular Dealer definition is valid. In order to make sure that we haven't already defined the specific Dealer for certain Enterprise Company, we need to check that in the dealer's Enterprise Company there is only one Dealer that refers the same Party as the one of the current record. If the field 'Enterprise Company' in the Dealer's definition is empty, then it is considered that the Dealer is defined for all Enterprise Companies and no other Dealers that refer the current Party could be created. |
Message | There is another dealer defined for party '{Dealer.Party}' in the same enterprise company.
Please, check in the right enterprise company is set or if the record has already been created. |
Introduced In Version | 2017 |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.