refs #6493 refactorizar-procedimientos-vn2008-parte_2 #2235

Merged
jbreso merged 39 commits from 6493-refactorizar-procedimientos-vn2008-parte_2 into dev 2024-04-24 05:18:59 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 2d4524a34c - Show all commits

View File

@ -26,7 +26,7 @@ proc: BEGIN
-- Calcula algunos parámetros necesarios.
SET vDatedFrom = TIMESTAMP(vDated, '00:00:00');
SET vDatedTo = TIMESTAMP(TIMESTAMPADD(DAY, 4, vDated), '23:59:59');
jbreso marked this conversation as resolved Outdated

no utilizamos TIMESTAMPADD, modificar por INTERVAL

no utilizamos TIMESTAMPADD, modificar por INTERVAL
SELECT FechaInventario INTO vDatedInventory FROM tblContadores;
SELECT inventoried INTO vDatedInventory FROM config;
SELECT SUBTIME(util.VN_NOW(), reserveTime) INTO vDatedReserve
FROM hedera.orderConfig;

View File

@ -136,7 +136,7 @@ BEGIN
GROUP BY id
) g ON g.id = bnt.expenseFk COLLATE utf8_general_ci
SET b.expenseFk = g.id COLLATE utf8_general_ci,
b.expenseName = g.id COLLATE utf8_general_ci ;
b.expenseName = g.name COLLATE utf8_general_ci ;
-- Rellenamos los valores de primer nivel, los que corresponden
-- a los gastos simples.