fix: refs #7781 prevent pallet merge #2792
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2792
Loading…
Reference in New Issue
No description provided.
Delete Branch "7781-fixPalletMerge"
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?
@ -89,0 +90,4 @@
IF vExpeditionWithPallet THEN
UPDATE arcRead
SET error = vExpeditionWithOutPallet
Si dalt se ha fet
IF NOT vExpeditionWithPallet
no entrarà mai per el else.Volies ficar
vExpeditionWithOutPallet
?si
@ -55,2 +49,2 @@
) sub
LIMIT 1;
SELECT COUNT(palletFk) INTO vExpeditionWithPallet FROM tExpedition;
SELECT GROUP_CONCAT(expeditionFk SEPARATOR ', ') INTO vExpeditionWithOutPallet
La variable es tipo INT.... ¿ que sentido tiene el group_concat ?
@ -79,3 +83,3 @@
SELECT expeditionFk, vPalletFk, vWorkerFk
FROM tExpedition
ON DUPLICATE KEY UPDATE palletFk = vPalletFk, workerFk = vWorkerFk;
WHERE palletFk IS NULL;
No entenc. Si ja existeix, no actualitza ?
I el WHERE no afecta al SELECT, sino a la taula... això funciona ?