R18731 Party - Party Name
Name | Value |
---|---|
Code | R18731 |
Entity | General.Contacts.Parties Entity |
Name | PartyName |
Attribute | PartyName |
Layer | Back-End |
Events | Commit |
Priority | Normal |
Modify | YES |
Action | If (Party.PartyType == Company) Party.PartyName = Company.Name + IF(BranchNumber = 0, '' , '[' + BranchNumber + ']') else if (Party.PartyType == Person) Party.PartyName = Person.FirstName + Person.MiddleName + Person.LastName else if (Party.PartyType == Store) Party.PartyName = Store.Name else if (Party.PartyType == Company Location) Party.PartyName = CompanyLocation.Company.Name + ', ' + CompanyLocation.LocationName else if (Party.PartyType == Division) Party.PartyName = CompanyDivision.Name else Party.PartyName = null |
Description | When the new party is created, the PartyName is automatically filled as follows: - if the party is a Company - its PartyName is the Company's Name. If the BranchNumber is 0, it is ignored. Otherwise, the BranchNumber is appended in square brackets. Example: "TechCorp" or "TechCorp [3]"; - if the party is a Person - its PartyName is the Person's full name i.e. is created by concatenating FirstName, MiddleName, and LastName. Example: "John Michael Doe"; - if the party is a Store - its PartyName is the Store's Name. Example: "SuperMart"; - if the party is a Company Location - The name is formed by combining the Company.Name and the LocationName, separated by a comma. Example: "TechCorp, New York Office"; - if the party is a Company Division - its PartyName is the Division's Name. Example: "Sales Division"; - in all other cases the PartyName is null. |
Message | The party name does not correspond to the full name of the object. For example the person full name contains first, middle and last name. |
Version | Introduced: 2017 |
Revocable | NO |
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.