This commit is contained in:
parent
9585af8e77
commit
bac07fe265
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue