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

This commit is contained in:
Joan Sanchez 2021-06-03 11:41:01 +02:00
commit ded387f95d
1 changed files with 5 additions and 6 deletions

View File

@ -120,7 +120,7 @@ BEGIN
GROUP BY tl.ticketFk GROUP BY tl.ticketFk
ON DUPLICATE KEY UPDATE ON DUPLICATE KEY UPDATE
isAvailable = 0; isAvailable = 0;
/*
INSERT INTO tmp.ticketProblems(ticketFk, itemShortage) INSERT INTO tmp.ticketProblems(ticketFk, itemShortage)
SELECT ticketFk, problem SELECT ticketFk, problem
FROM ( FROM (
@ -142,10 +142,10 @@ BEGIN
AND NOT i.generic AND NOT i.generic
AND CURDATE() = vDate AND CURDATE() = vDate
AND t.warehouseFk = vWarehouse AND t.warehouseFk = vWarehouse
GROUP BY tl.ticketFk LIMIT 1) sub GROUP BY tl.ticketFk) sub
ON DUPLICATE KEY UPDATE ON DUPLICATE KEY UPDATE
itemShortage = sub.problem; itemShortage = sub.problem;
*/
INSERT INTO tmp.ticketProblems(ticketFk, itemDelay) INSERT INTO tmp.ticketProblems(ticketFk, itemDelay)
SELECT ticketFk, problem SELECT ticketFk, problem
FROM ( FROM (
@ -165,7 +165,7 @@ BEGIN
AND NOT i.generic AND NOT i.generic
AND CURDATE() = vDate AND CURDATE() = vDate
AND t.warehouseFk = vWarehouse AND t.warehouseFk = vWarehouse
GROUP BY tl.ticketFk LIMIT 1) sub GROUP BY tl.ticketFk) sub
ON DUPLICATE KEY UPDATE ON DUPLICATE KEY UPDATE
itemDelay = sub.problem; itemDelay = sub.problem;
END WHILE; END WHILE;
@ -183,6 +183,5 @@ BEGIN
DROP TEMPORARY TABLE DROP TEMPORARY TABLE
tmp.clientGetDebt, tmp.clientGetDebt,
tmp.ticketList; tmp.ticketList;
END;;$$ END;;$$
DELIMITER ; DELIMITER ;