feat: refs #6822
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Robert Ferrús 2024-05-23 12:41:59 +02:00
parent 9585af8e77
commit bac07fe265
1 changed files with 1 additions and 7 deletions

View File

@ -12,13 +12,7 @@ BEGIN
DECLARE vWarehouseFk INT;
-- Clonar la entrada
CALL entry_clone(vOriginalEntry);
SELECT id INTO vNewEntryFk
FROM entry
WHERE clonedFrom = vOriginalEntry
ORDER BY dated DESC
LIMIT 1;
CALL entry_clone(vOriginalEntry,vNewEntryFk);
-- Hay que crear un nuevo travel, con salida hoy y llegada mañana y asignar la entrada nueva al nuevo travel.
INSERT INTO travel(