diff --git a/db/changes/232001/00-procedurecanAdvance.sql b/db/changes/232001/00-procedurecanAdvance.sql index df0ec33b4..9d5c24296 100644 --- a/db/changes/232001/00-procedurecanAdvance.sql +++ b/db/changes/232001/00-procedurecanAdvance.sql @@ -1,4 +1,6 @@ -REPLACE OR CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canAdvance`(vDateFuture DATE, vDateToAdvance DATE, vWarehouseFk INT) +DELIMITER $$ +$$ +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canAdvance`(vDateFuture DATE, vDateToAdvance DATE, vWarehouseFk INT) BEGIN /** * Devuelve los tickets y la cantidad de lineas de venta que se pueden adelantar. @@ -7,7 +9,7 @@ BEGIN * @param vDateToAdvance Fecha a cuando se quiere adelantar. * @param vWarehouseFk Almacén */ - + DECLARE vDateInventory DATE; SELECT inventoried INTO vDateInventory FROM config; @@ -121,4 +123,5 @@ SELECT ) dest ON dest.addressFk = origin.addressFk WHERE origin.hasStock != 0; DROP TEMPORARY TABLE tmp.stock; -END \ No newline at end of file +END$$ +DELIMITER ; \ No newline at end of file diff --git a/db/changes/232001/00-procedurecanbePostponed.sql b/db/changes/232001/00-procedurecanbePostponed.sql index 5684e006e..39aa35cd5 100644 --- a/db/changes/232001/00-procedurecanbePostponed.sql +++ b/db/changes/232001/00-procedurecanbePostponed.sql @@ -1,4 +1,6 @@ -REPLACE OR CREATE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canbePostponed`(vOriginDated DATE, vFutureDated DATE, vWarehouseFk INT) +DELIMITER $$ +$$ +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`ticket_canbePostponed`(vOriginDated DATE, vFutureDated DATE, vWarehouseFk INT) BEGIN /** * Devuelve un listado de tickets susceptibles de fusionarse con otros tickets en el futuro @@ -66,4 +68,5 @@ BEGIN AND tp.ticketFk IS NULL GROUP BY sv.ticketFk HAVING futureId; -END \ No newline at end of file +END$$ +DELIMITER ; \ No newline at end of file