R29696 PosLocation - Only One Active Pos Location Per Enterprise Company Location

Code R29696
Entity Crm.Pos.Locations Entity
Name OnlyOneActivePosLocationPerEnterpriseCompanyLocation
Attribute IsActive, EnterpriseCompanyLocation
Layer Back-End
Events Commit
Priority Normal
Modify NO



Applicable Legislations ALL // no condition needed
Action Validate that:

If (IsActive = True)

then

PosLocations [(IsActive = True) && (EnterpriseCompanyLocation = PosLocation.EnterpriseCompanyLocation)].Count() <= 1
Description The current validation checks that for the Enterprise Company Location there is only one Active PosLocation.
Message There already is another active POS Location for Enterprise Company Location '{EnterpriseCompanyLocation}'.
Introduced In Version 2019.1
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.