fix: refs #7779 refactor collection #3021
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3021
Loading…
Reference in New Issue
No description provided.
Delete Branch "7779-refactor-collection"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -290,0 +245,4 @@
SELECT wagon INTO vFreeWagonFk
FROM tTrain
GROUP BY wagon
HAVING SUM(IFNULL(ticketFk, 0)) = 0
HAVING COUNT(ticketFk) = 0 açò seria mes intuitiu
@ -319,0 +262,4 @@
JOIN (SELECT wagon
FROM tTrain
GROUP BY wagon
HAVING SUM(IFNULL(ticketFk, 0)) = 0
HAVING COUNT(ticketFk) = 0
@ -34,4 +44,0 @@
JOIN itemType it ON it.id = i.typeFk
WHERE s.ticketFk = vSelf
AND stp.id IS NULL
AND it.isMergeable;
si no es gasta esta columna, estar segurs i la kkejem, no es gasta en altres llocs
Quina columna, isMergeable¿? Heu he llevat perque ja es fa més amunt en el codi, he canviat la logica pero deuria de ser el mateix resultat
@ -295,38 +254,35 @@ BEGIN
SET ticketFk = vFirstTicketFk
No tinc clar que se estiga asegurant que el primer ticket sempre siga asignat... ho has comprovat ?
Sí, heu he provat en les dades de dev
@ -90,3 +67,1 @@
INSERT INTO tmp.ticketIPT(ticketFk, itemPackingTypeFk)
VALUES(vNewTicketFk, vItemPackingTypeFk);
END LOOP;
UPDATE tSalesToMove
No tinc clar que se estiga respectant el ticket original per al itemPackingType definit... ho has comprovat ?
també està provat en dev, pero de totes maneres hi ha que fer proves quan estiga pujat i abans de que passe a producció