refs #6498 procRefactor6 #2134

Merged
ivanm merged 8 commits from 6499-procRefactor6 into dev 2024-03-21 11:03:33 +00:00
3 changed files with 125 additions and 105 deletions
Showing only changes of commit 354ecfaa16 - Show all commits

View File

@ -43,7 +43,7 @@ BEGIN
SELECT tr.shipped `date`, SELECT tr.shipped `date`,
NULL input, NULL input,
c.quantity `output`, c.quantity `output`,
warehouseOutFk warehouse, tr.warehouseOutFk warehouse,
tr.isDelivered ok, tr.isDelivered ok,
e.invoiceNumber reference, e.invoiceNumber reference,
e.id id e.id id

Quitar alias siempre a partir del segundo select cuando se haga un UNION

Quitar alias siempre a partir del segundo select cuando se haga un UNION
@ -58,7 +58,7 @@ BEGIN
SELECT t.shipped `date`, SELECT t.shipped `date`,
NULL input, NULL input,
m.quantity `output`, m.quantity `output`,
warehouseInFk warehouse, tr.warehouseInFk warehouse,
(m.isPicked <> 0 OR t.isLabeled <> 0 OR t.refFk IS NOT NULL) ok, (m.isPicked <> 0 OR t.isLabeled <> 0 OR t.refFk IS NOT NULL) ok,
t.refFk reference, t.refFk reference,
t.id id t.id id

View File

@ -1,2 +1,22 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`multipleInventoryHistory`(
vItemFk INT)
BEGIN
DECLARE vDateInventory DATETIME;
SELECT inventoried INTO vDateInventory FROM config;
END$$
DELIMITER ;
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`absoluteInventoryHistory`(
vItemFk INT, vWarehouse INT, vDate DATETIME)
BEGIN
DECLARE vCalculatedInventory INT;
SET vCalculatedInventory = 0;
END$$
DELIMITER ;
GRANT EXECUTE ON PROCEDURE vn.absoluteInventoryHistory TO buyer; GRANT EXECUTE ON PROCEDURE vn.absoluteInventoryHistory TO buyer;
GRANT EXECUTE ON PROCEDURE vn.multipleInventoryHistory TO buyer; GRANT EXECUTE ON PROCEDURE vn.multipleInventoryHistory TO buyer;