This reverts commitd41262798c
, reversing changes made to3d20908a42
.
This commit is contained in:
parent
d41262798c
commit
a0abc29167
|
@ -20,7 +20,7 @@ BEGIN
|
||||||
DECLARE vExpeditionFk INT;
|
DECLARE vExpeditionFk INT;
|
||||||
DECLARE vTruckFk INT;
|
DECLARE vTruckFk INT;
|
||||||
DECLARE vPrinterFk INT;
|
DECLARE vPrinterFk INT;
|
||||||
DECLARE vExpeditionStateTypeFk INT;
|
DECLARE vExpeditionScanTypeFk INT;
|
||||||
|
|
||||||
CREATE OR REPLACE TEMPORARY TABLE tExpedition (
|
CREATE OR REPLACE TEMPORARY TABLE tExpedition (
|
||||||
expeditionFk INT,
|
expeditionFk INT,
|
||||||
|
@ -80,12 +80,10 @@ BEGIN
|
||||||
FROM tExpedition
|
FROM tExpedition
|
||||||
ON DUPLICATE KEY UPDATE palletFk = vPalletFk, workerFk = vWorkerFk;
|
ON DUPLICATE KEY UPDATE palletFk = vPalletFk, workerFk = vWorkerFk;
|
||||||
|
|
||||||
SELECT id INTO vExpeditionStateTypeFk
|
SELECT id INTO vExpeditionScanTypeFk FROM expeditionScanType WHERE code = 'PALLETIZED';
|
||||||
FROM expeditionStateType
|
|
||||||
WHERE code = 'PALLETIZED';
|
|
||||||
|
|
||||||
INSERT INTO expeditionState(expeditionFk, typeFk)
|
INSERT INTO expeditionState(expeditionFk, typeFk)
|
||||||
SELECT expeditionFk, vExpeditionStateTypeFk FROM tExpedition;
|
SELECT expeditionFk, vExpeditionScanTypeFk FROM tExpedition;
|
||||||
|
|
||||||
SELECT printerFk INTO vPrinterFk FROM arcRead WHERE id = vArcId;
|
SELECT printerFk INTO vPrinterFk FROM arcRead WHERE id = vArcId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue