fix: quitar delete
gitea/salix/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Robert Ferrús 2024-03-04 11:51:55 +01:00
parent 31bd88e856
commit 5175c91b2d
1 changed files with 0 additions and 9 deletions

View File

@ -11,15 +11,6 @@ BEGIN
DELETE FROM rutasBoard
WHERE Fecha BETWEEN vDatedFrom AND vDatedTo;
DELETE rb
FROM rutasBoard rb
JOIN vn.route r ON r.id = rb.Id_Ruta
JOIN vn.ticket t ON t.routeFk = r.id
LEFT JOIN vn.`zone` z ON z.id = t.zoneFk
JOIN vn.expeditionBoxVol ebv ON ebv.code = 'transportBox'
WHERE r.created BETWEEN vDatedFrom AND vDatedTo
AND z.isVolumetric;
-- Rellenamos la tabla con los datos de las rutas VOLUMETRICAS, especialmente con los bultos "virtuales"
INSERT INTO rutasBoard(
Id_Ruta,