Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into test
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-03-14 08:20:15 +01:00
commit 346557ed69
1 changed files with 8 additions and 0 deletions

View File

@ -18,12 +18,19 @@ BEGIN
DECLARE vCalcFk INT; DECLARE vCalcFk INT;
DECLARE vTypeFk INT; DECLARE vTypeFk INT;
DECLARE vPriority INT DEFAULT 1; DECLARE vPriority INT DEFAULT 1;
DECLARE EXIT HANDLER FOR SQLEXCEPTION
BEGIN
ROLLBACK;
RESIGNAL;
END;
SELECT warehouseFk, shipped SELECT warehouseFk, shipped
INTO vWarehouseFk, vShipped INTO vWarehouseFk, vShipped
FROM ticket FROM ticket
WHERE id = vTicketFk; WHERE id = vTicketFk;
START TRANSACTION;
CALL cache.available_refresh(vCalcFk, FALSE, vWarehouseFk, vShipped); CALL cache.available_refresh(vCalcFk, FALSE, vWarehouseFk, vShipped);
WITH itemTags AS ( WITH itemTags AS (
@ -92,5 +99,6 @@ BEGIN
match7 DESC, match7 DESC,
(i.tag8 = its.tag8) DESC, (i.tag8 = its.tag8) DESC,
match8 DESC; match8 DESC;
COMMIT;
END$$ END$$
DELIMITER ; DELIMITER ;