Correzione widget valore magazzino

This commit is contained in:
loviuz 2022-02-25 18:42:12 +01:00
parent 40bdbbb7fb
commit 876dd2dfed
1 changed files with 4 additions and 1 deletions

View File

@ -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';
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';