This commit is contained in:
Thomas Zilio 2018-10-15 14:14:46 +02:00
parent 761e0b1df5
commit fcc56c61ba
1 changed files with 3 additions and 0 deletions

View File

@ -540,3 +540,6 @@ ALTER TABLE `an_zone` CHANGE `default` `default` boolean NOT NULL DEFAULT 0;
ALTER TABLE `zz_modules` CHANGE `default` `default` boolean NOT NULL DEFAULT 0;
ALTER TABLE `zz_segments` CHANGE `predefined` `predefined` boolean NOT NULL DEFAULT 0;
-- Fix colore per fatture senza numero esterno
UPDATE `zz_views` SET `query` = 'IF((SELECT COUNT(t.numero_esterno) FROM co_documenti AS t WHERE t.numero_esterno = co_documenti.numero_esterno AND t.numero_esterno != '''' AND t.id_segment = co_documenti.id_segment AND idtipodocumento IN (SELECT id FROM co_tipidocumento WHERE dir = ''entrata'') AND t.data >= ''|period_start|'' AND t.data <= ''|period_end|'') > 1, ''red'', '''')' WHERE `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita') AND `name` = '_bg_';