This commit is contained in:
parent
f215ce5f05
commit
354ecfaa16
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue