WIP: feat: refs #7377 Delete items #2625

Closed
guillermo wants to merge 2 commits from 7377-deleteItems into dev
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 16ba74dffc - Show all commits

View File

@ -221,7 +221,7 @@ BEGIN
FROM tInventory; FROM tInventory;
-- Eliminamos artículos que no estén en el inventario sin compra o venta -- Eliminamos artículos que no estén en el inventario sin compra o venta
DELETE i.id FROM item i DELETE i.* FROM item i
LEFT JOIN tInventory ti ON ti.itemFk = i.id LEFT JOIN tInventory ti ON ti.itemFk = i.id
LEFT JOIN sale s ON s.itemFk = i.id LEFT JOIN sale s ON s.itemFk = i.id
LEFT JOIN buy b ON b.itemFk = i.id LEFT JOIN buy b ON b.itemFk = i.id