Merge pull request 'feat refactor setParking REGEXP refs #7575' (!2654) from 7575_setParking_regExp into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #2654
Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
Sergio De la torre 2024-07-01 15:47:28 +00:00
commit 68b7f5baf6
1 changed files with 34 additions and 32 deletions

View File

@ -23,6 +23,7 @@ proc: BEGIN
LEAVE proc; LEAVE proc;
END IF; END IF;
IF vParam REGEXP '^[0-9]+$' THEN
-- Se comprueba si es una preparación previa -- Se comprueba si es una preparación previa
SELECT COUNT(*) INTO vIsSaleGroup SELECT COUNT(*) INTO vIsSaleGroup
FROM vn.saleGroup sg FROM vn.saleGroup sg
@ -54,8 +55,9 @@ proc: BEGIN
CALL vn.collection_setParking(vParam, vParkingFk); CALL vn.collection_setParking(vParam, vParkingFk);
LEAVE proc; LEAVE proc;
END IF; END IF;
ELSE
-- Por descarte, se considera una matrícula -- Por descarte, se considera una matrícula
CALL vn.shelving_setParking(vParam, vParkingFk); CALL vn.shelving_setParking(vParam, vParkingFk);
END IF;
END$$ END$$
DELIMITER ; DELIMITER ;