From 5d09b59c58af9917acca3445d1be2c4f87996744 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 27 Nov 2018 00:51:34 +0100 Subject: [PATCH] Colonna porto predefinita Colonna tipi di spedizione predefinita --- modules/porti/edit.php | 2 +- modules/spedizioni/edit.php | 2 +- update/2_4_3.sql | 11 ++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/modules/porti/edit.php b/modules/porti/edit.php index 88f300d1f..af7d8bd30 100644 --- a/modules/porti/edit.php +++ b/modules/porti/edit.php @@ -18,7 +18,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$" ]} + {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$", "help":"." ]}
diff --git a/modules/spedizioni/edit.php b/modules/spedizioni/edit.php index 98db1803d..2fcd4429b 100644 --- a/modules/spedizioni/edit.php +++ b/modules/spedizioni/edit.php @@ -18,7 +18,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$" ]} + {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$", "help":"." ]}
diff --git a/update/2_4_3.sql b/update/2_4_3.sql index 26c63d8c3..3ee0c32db 100644 --- a/update/2_4_3.sql +++ b/update/2_4_3.sql @@ -38,4 +38,13 @@ ALTER TABLE `co_documenti` ADD `tipo_resa` VARCHAR(3); INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default` ) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'MyImpianti'), 'Nome', 'nome', 2, 1, 0, 0, NULL, NULL, 0, 0, 0); -- Colonna causale predefinita -INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default` ) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Causali'), 'Predefinita', 'IF(predefined, ''Sì'', ''No'')', 2, 1, 0, 0, NULL, NULL, 0, 0, 0); \ No newline at end of file +INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default` ) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Causali'), 'Predefinita', 'IF(predefined, ''Sì'', ''No'')', 2, 1, 0, 0, NULL, NULL, 0, 0, 0); + +-- Colonna porto predefinita +INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default` ) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Porto'), 'Predefinita', 'IF(predefined, ''Sì'', ''No'')', 2, 1, 0, 0, NULL, NULL, 0, 0, 0); + +-- Nascondo colonna id inutile per porto +UPDATE `zz_views` SET `visible` = '0' WHERE `zz_views`.`name` = 'id' AND `id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Porto') ; + +-- Colonna tipi di spedizione predefinita +INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default` ) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Tipi di spedizione'), 'Predefinita', 'IF(predefined, ''Sì'', ''No'')', 2, 1, 0, 0, NULL, NULL, 0, 0, 0);