feat: refs #7168 Added vRecords param in proc #2305

Merged
sergiodt merged 7 commits from 7168-itemShelvingLog_get into dev 2024-06-25 14:26:22 +00:00
1 changed files with 8 additions and 17 deletions
Showing only changes of commit 1140e6bbd3 - Show all commits

View File

@ -13,25 +13,16 @@ BEGIN
*/
DECLARE vQuery TEXT;
SET vQuery = '
SELECT isl.itemShelvingFk,
isl.created,
isl.accion,
isl.itemFk,
SELECT isl.itemFk,

arribats a este punt..hi ha que intentar no seguir per ací, proba a fer la cridà desde front i borrem este back

arribats a este punt..hi ha que intentar no seguir per ací, proba a fer la cridà desde front i borrem este back
i.longName,
isl.shelvingFk,
w.code,
isl.accion,
isl.quantity,
isl.visible,
isl.available,
isl.`grouping`,
isl.packing,
isl.stars,
item.longName,
item.size,
item.subName,
worker.code,
isl.accion
FROM item
JOIN itemShelvingLog isl ON item.id = isl.itemFk
JOIN worker ON isl.workerFk = worker.id
isl.created
FROM item i
JOIN itemShelvingLog isl ON i.id = isl.itemFk
JOIN worker w ON isl.workerFk = w.id
WHERE shelvingFk = ?
OR isl.itemFk = ?
ORDER BY isl.created DESC';