From 64b8265675f1c73cd1cd7001c5e4ca7e782f009b Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Wed, 26 Feb 2025 09:36:43 +0100 Subject: [PATCH] fix: refs #4409 tLotStatus alias fix --- db/routines/stock/procedures/buyOut_refreshBuy.sql | 2 +- db/routines/stock/procedures/buyOut_refreshOrder.sql | 2 +- db/routines/stock/procedures/buyOut_refreshSale.sql | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db/routines/stock/procedures/buyOut_refreshBuy.sql b/db/routines/stock/procedures/buyOut_refreshBuy.sql index a57c6c2af9..69b3878358 100644 --- a/db/routines/stock/procedures/buyOut_refreshBuy.sql +++ b/db/routines/stock/procedures/buyOut_refreshBuy.sql @@ -18,7 +18,7 @@ BEGIN CREATE OR REPLACE TEMPORARY TABLE tLotAlive ENGINE = MEMORY SELECT - oo.lotFk, + ls.lotFk, t.warehouseOutFk warehouseFk, ADDTIME(t.shipped, IFNULL(shipmentHour, '00:00:00')) dated, t.isDelivered isPicked, diff --git a/db/routines/stock/procedures/buyOut_refreshOrder.sql b/db/routines/stock/procedures/buyOut_refreshOrder.sql index 769d63e19b..610630ea20 100644 --- a/db/routines/stock/procedures/buyOut_refreshOrder.sql +++ b/db/routines/stock/procedures/buyOut_refreshOrder.sql @@ -17,7 +17,7 @@ BEGIN CREATE OR REPLACE TEMPORARY TABLE tLotAlive ENGINE = MEMORY SELECT - oo.lotFk, + ls.lotFk, r.warehouseFk, r.shipment dated, r.itemFk, diff --git a/db/routines/stock/procedures/buyOut_refreshSale.sql b/db/routines/stock/procedures/buyOut_refreshSale.sql index 0d17f494e9..48ddbf499a 100644 --- a/db/routines/stock/procedures/buyOut_refreshSale.sql +++ b/db/routines/stock/procedures/buyOut_refreshSale.sql @@ -23,7 +23,7 @@ BEGIN CREATE OR REPLACE TEMPORARY TABLE tLotAlive ENGINE = MEMORY SELECT - oo.lotFk, + ls.lotFk, t.warehouseFk, t.shipped dated, s.itemFk,