From 467c0ba666571a7623e158a1f8a93c031a7ee063 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 4 Aug 2022 18:32:28 +0200 Subject: [PATCH] Aggiunto charcounter e maxlength a 100 per descrizione causali trasporto --- modules/causali/add.php | 2 +- modules/causali/edit.php | 2 +- update/2_4_35.sql | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/causali/add.php b/modules/causali/add.php index 3fc7a45c4..4cb47a6b6 100755 --- a/modules/causali/add.php +++ b/modules/causali/add.php @@ -25,7 +25,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "text", "label": "", "name": "descrizione", "required": 1 ]} + {[ "type": "text", "label": "", "name": "descrizione", "required": 1, "charcounter": 1, "maxlength": "100" ]}
diff --git a/modules/causali/edit.php b/modules/causali/edit.php index 231f343f7..8335808c6 100755 --- a/modules/causali/edit.php +++ b/modules/causali/edit.php @@ -28,7 +28,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": "$descrizione$" ]} + {[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": "$descrizione$", "charcounter": 1, "maxlength": "100" ]}
diff --git a/update/2_4_35.sql b/update/2_4_35.sql index 25d274594..d60d8a53e 100644 --- a/update/2_4_35.sql +++ b/update/2_4_35.sql @@ -25,4 +25,8 @@ UPDATE `zz_segments` SET `clause` = 'co_pagamenti.codice_modalita_pagamento_fe= -- Aggiunta filtri per agente in preventivi INSERT INTO `zz_group_module` (`idgruppo`, `idmodule`, `name`, `clause`, `position`, `enabled`, `default`) VALUES ((SELECT `id` FROM `zz_groups` WHERE `nome`='Agenti'), (SELECT `id` FROM `zz_modules` WHERE `name`='Preventivi'), 'Mostra agli agenti solo i preventivi dei clienti dei quali si รจ agenti', 'an_anagrafiche.idagente=|id_anagrafica|', 'WHR', 1, 0); -INSERT INTO `zz_group_module` (`idgruppo`, `idmodule`, `name`, `clause`, `position`, `enabled`, `default`) VALUES ((SELECT `id` FROM `zz_groups` WHERE `nome`='Agenti'), (SELECT `id` FROM `zz_modules` WHERE `name`='Preventivi'), 'Mostra agli agenti solo i preventivi di cui sono agenti', 'co_preventivi.idagente=|id_anagrafica|', 'WHR', 1, 0); \ No newline at end of file +INSERT INTO `zz_group_module` (`idgruppo`, `idmodule`, `name`, `clause`, `position`, `enabled`, `default`) VALUES ((SELECT `id` FROM `zz_groups` WHERE `nome`='Agenti'), (SELECT `id` FROM `zz_modules` WHERE `name`='Preventivi'), 'Mostra agli agenti solo i preventivi di cui sono agenti', 'co_preventivi.idagente=|id_anagrafica|', 'WHR', 1, 0); + +-- Aggiornamento title e icona per Causali (Causali trasporto) e Causali movimenti +UPDATE `zz_modules` SET `title` = 'Causali trasporto', `icon` = 'fa fa-truck' WHERE `zz_modules`.`name` = 'Causali'; +UPDATE `zz_modules` SET `icon` = 'fa fa-exchange' WHERE `zz_modules`.`name` = 'Causali movimenti'; \ No newline at end of file