feat: refs #7564 Fix version

This commit is contained in:
Guillermo Bonet 2024-08-20 11:45:50 +02:00
parent 8a03650eca
commit 2b12e046e4
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
-- Calculamos todos los volumenes de todos los tickets una sola vez
CREATE OR REPLACE TEMPORARY TABLE tTicketVolume
CREATE OR REPLACE TEMPORARY TABLE tmp.tTicketVolume
(PRIMARY KEY (id))
ENGINE = MEMORY
SELECT t.id, SUM(s.quantity * ic.cm3delivery / 1000000) volume
@ -13,4 +13,4 @@ UPDATE vn.ticket t
JOIN tTicketVolume tv ON tv.id = t.id
SET t.volume = tv.volume;
DROP TEMPORARY TABLE tTicketVolume;
DROP TEMPORARY TABLE tmp.tTicketVolume;