+----------------------+-----------------------------------------------------------------------------------------------+
| Code | R29681 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Crm.Pos.Sequences |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | OnlyOnePosSequencePerPosDevice |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | PosDevice |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Back-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | Commit |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
| **Applicable | ALL // no condition |
| Legislations** | needed |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | If (Active = True) |
| |
|
| | , validate that PosSequences [(Active = True) && (PosDevice = |
| | PosSequence.PosDevice)].Count() <= 1 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | On Commit check that for the PosDevice there is only one Active PosSequence |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | There already is another active sequence for PosDevice '{PosDevice}'. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Introduced In | 2019.1 |
| Version | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.