R29697 PosOperator - Valid Default Pos Terminal

Code R29697
Entity Crm.Pos.Operators Entity
Name ValidDefaultPosTerminal
Attribute DefaultPosTerminal
Layer Back-End
Events Commit
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action Validate that:

If (DefaultPosTerminal != Null), then (DefaultPosTerminal.PosLocation == PosLocation)
Description Validate that if the Default POS Terminal  is not empty then the POS Location of the chosen Default POS Terminal is same as the POS Location of the current POS Operator.
Message "The chosen Default POS Terminal '{DefaultPosTerminal}' is in a POS Location, which is different from the POS Location '{PosLocation}' of the current POS Operator '{PosOperatorCode}' "
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.