From 876dd2dfed23e39138b30ae49ac7849af5d0fbd7 Mon Sep 17 00:00:00 2001 From: loviuz Date: Fri, 25 Feb 2022 18:42:12 +0100 Subject: [PATCH] Correzione widget valore magazzino --- update/2_4_31.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update/2_4_31.sql b/update/2_4_31.sql index 4e8f8f2c3..6a98b53ef 100644 --- a/update/2_4_31.sql +++ b/update/2_4_31.sql @@ -29,4 +29,7 @@ INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, ` -- Aggiunta opzione formattazione HTML nelle viste per la gestione dei campi CKeditor ALTER TABLE `zz_views` ADD `html_format` TINYINT NOT NULL DEFAULT '1' AFTER `format`; -UPDATE `zz_views` SET `html_format` = '1'; \ No newline at end of file +UPDATE `zz_views` SET `html_format` = '1'; + +-- Correzione widget valore magazzino +UPDATE `zz_widgets` SET `query` = 'SELECT CONCAT_WS(\" \", REPLACE(REPLACE(REPLACE(FORMAT(SUM(prezzo_acquisto*qta),2), \",\", \"#\"), \".\", \",\"), \"#\", \".\"), \"€\") AS dato FROM mg_articoli WHERE qta>0 AND deleted_at IS NULL AND servizio=0' WHERE `zz_widgets`.`name` = 'Valore magazzino'; \ No newline at end of file