Colonna porto predefinita

Colonna tipi di spedizione predefinita
This commit is contained in:
Luca 2018-11-27 00:51:34 +01:00
parent 841fd9224d
commit 5d09b59c58
3 changed files with 12 additions and 3 deletions

View File

@ -18,7 +18,7 @@ include_once __DIR__.'/../../core.php';
</div>
<div class="col-md-3">
{[ "type": "checkbox", "label": "<?php echo tr('Porto predefinito'); ?>", "name": "predefined", "value": "$predefined$" ]}
{[ "type": "checkbox", "label": "<?php echo tr('Porto predefinito'); ?>", "name": "predefined", "value": "$predefined$", "help":"<?php echo tr("Impostare questo porto come predefinito per i ddt");?>." ]}
</div>
</div>
</div>

View File

@ -18,7 +18,7 @@ include_once __DIR__.'/../../core.php';
</div>
<div class="col-md-3">
{[ "type": "checkbox", "label": "<?php echo tr('Spedizione predefinita'); ?>", "name": "predefined", "value": "$predefined$" ]}
{[ "type": "checkbox", "label": "<?php echo tr('Spedizione predefinita'); ?>", "name": "predefined", "value": "$predefined$", "help":"<?php echo tr("Impostare questo tipo di spedizione come predefinito per i ddt");?>." ]}
</div>
</div>
</div>

View File

@ -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, '''', ''No'')', 2, 1, 0, 0, NULL, NULL, 0, 0, 0);
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, '''', ''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, '''', ''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, '''', ''No'')', 2, 1, 0, 0, NULL, NULL, 0, 0, 0);