refs #5802 feat:ticket_setState

This commit is contained in:
Sergio De la torre 2024-01-30 13:29:49 +01:00
parent acf47468c0
commit 27f6621447
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ BEGIN
CALL util.throw('ASSIGN_ZONE_FIRST');
END IF;
SET vCanChangeState = (
vStateCode <> 'ON_CHECKING' OR
SET vCanChangeState = ((
vStateCode <> 'ON_CHECKING' AND vStateCode <> 'CHECKED') OR
vticketAlertLevel < vPackedAlertLevel
)AND NOT (
vTicketStateCode IN ('CHECKED', 'CHECKING')