refs #6498 Arreglar grant y tabs
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Ivan Mas 2024-03-06 09:00:21 +01:00
parent f215ce5f05
commit 354ecfaa16
3 changed files with 125 additions and 105 deletions

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
@ -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;