refs #6493 refactorizar-procedimientos-vn2008-parte_2 #2235
|
@ -26,7 +26,7 @@ proc: BEGIN
|
||||||
-- Calcula algunos parámetros necesarios.
|
-- Calcula algunos parámetros necesarios.
|
||||||
SET vDatedFrom = TIMESTAMP(vDated, '00:00:00');
|
SET vDatedFrom = TIMESTAMP(vDated, '00:00:00');
|
||||||
SET vDatedTo = TIMESTAMP(TIMESTAMPADD(DAY, 4, vDated), '23:59:59');
|
SET vDatedTo = TIMESTAMP(TIMESTAMPADD(DAY, 4, vDated), '23:59:59');
|
||||||
jbreso marked this conversation as resolved
Outdated
|
|||||||
SELECT FechaInventario INTO vDatedInventory FROM tblContadores;
|
SELECT inventoried INTO vDatedInventory FROM config;
|
||||||
SELECT SUBTIME(util.VN_NOW(), reserveTime) INTO vDatedReserve
|
SELECT SUBTIME(util.VN_NOW(), reserveTime) INTO vDatedReserve
|
||||||
FROM hedera.orderConfig;
|
FROM hedera.orderConfig;
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ BEGIN
|
||||||
GROUP BY id
|
GROUP BY id
|
||||||
) g ON g.id = bnt.expenseFk COLLATE utf8_general_ci
|
) g ON g.id = bnt.expenseFk COLLATE utf8_general_ci
|
||||||
SET b.expenseFk = g.id 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
|
-- Rellenamos los valores de primer nivel, los que corresponden
|
||||||
-- a los gastos simples.
|
-- a los gastos simples.
|
||||||
|
|
Loading…
Reference in New Issue
no utilizamos TIMESTAMPADD, modificar por INTERVAL