Skip to content
Snippets Groups Projects
Commit 715b2024 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Better repair script

parent 0f49bb86
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,8 @@ insert into llx_c_actioncomm (id, code, type, libelle, module, position) values
-- Stock calculation on product
DELETE FROM llx_product_stock WHERE fk_product NOT IN (select rowid from llx_product);
UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps WHERE ps.fk_product = p.rowid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment