From 7065513d6390ebcdba96f71f22a8b283d79d976f Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Wed, 11 May 2022 11:11:27 +0200 Subject: [PATCH] Ordinamento vista N. Prot. --- update/2_4_33.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update/2_4_33.sql b/update/2_4_33.sql index 2eb17ecf0..2f270599e 100644 --- a/update/2_4_33.sql +++ b/update/2_4_33.sql @@ -146,4 +146,7 @@ INSERT INTO `an_regioni` (`id`, `nome`, `id_nazione`) VALUES INSERT INTO `zz_segments` (`id`, `id_module`, `name`, `clause`, `position`, `pattern`, `note`, `dicitura_fissa`, `predefined`, `predefined_accredito`, `predefined_addebito`, `created_at`, `updated_at`, `is_fiscale`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di acquisto'), 'Fatture non elettroniche', '1=1', 'WHR', '#', '', '', '0', '0', '0', NULL, NULL, '1'); -- Fix widget attività da programmare -UPDATE `zz_widgets` SET `query` = 'SELECT COUNT(id) AS dato FROM in_interventi WHERE in_interventi.idstatointervento = (SELECT in_statiintervento.idstatointervento FROM in_statiintervento WHERE in_statiintervento.codice=\'TODO\') ORDER BY in_interventi.data_richiesta ASC' WHERE `zz_widgets`.`name` = 'Attività nello stato da programmare'; \ No newline at end of file +UPDATE `zz_widgets` SET `query` = 'SELECT COUNT(id) AS dato FROM in_interventi WHERE in_interventi.idstatointervento = (SELECT in_statiintervento.idstatointervento FROM in_statiintervento WHERE in_statiintervento.codice=\'TODO\') ORDER BY in_interventi.data_richiesta ASC' WHERE `zz_widgets`.`name` = 'Attività nello stato da programmare'; + +-- Ordinamento vista N. Prot. +UPDATE `zz_views` SET `order_by` = 'CAST(co_documenti.numero AS UNSIGNED)' WHERE `zz_views`.`name` = 'N. Prot.'; \ No newline at end of file