R30704 SalesOrder - Completed State Cannot Be Revoked

Code R30704
Entity Crm.Sales.SalesOrders Entity
Name CompletedStateCannotBeRevoked
Attribute State
Layer Back-End
Events State Changing
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action If ((FromState >= Completed) and (PosLocation is NOT NULL)) |

Then (ToState cannot be Released or lower than Released)
Description Completed State cannot be changed to Released state or states lower than Released when the Sales Order has а Pos Location (Active or Not). This operation is not allowed due to a prohibition of editing documents when they are already registered from tax authorities.
Message The state Completed of a Sales Order cannot be revoked when the document has POS Location.
Version Introduced: 2020.1

Updated: -
Revocable NO

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