From 84afddb4637cce27ccceb5d3f82f117cb4428a13 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 30 Oct 2020 13:15:36 +0100 Subject: [PATCH 1/9] Informazione codice BIC Miglioria minore --- modules/banche/add.php | 5 ++++- modules/ddt/edit.php | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/banche/add.php b/modules/banche/add.php index c2486ab31..712c4030e 100755 --- a/modules/banche/add.php +++ b/modules/banche/add.php @@ -21,6 +21,9 @@ include_once __DIR__.'/../../core.php'; $id_anagrafica = filter('id_anagrafica'); +$help_codice_bic = tr("Il codice BIC (o SWIFT) è composto da 8 a 11 caratteri (lettere e numeri) ed è suddiviso in:").'

'; + + echo '
@@ -41,7 +44,7 @@ echo ' {[ "type": "text", "label": "'.tr('IBAN').'", "name": "iban", "required": "1", "class": "alphanumeric-mask", "maxlength": 32, "value": "$iban$" ]}
- {[ "type": "text", "label": "'.tr('BIC').'", "name": "bic", "required": "1", "class": "alphanumeric-mask", "maxlength": 11, "value": "$bic$" ]} + {[ "type": "text", "label": "'.tr('BIC').'", "name": "bic", "required": "1", "class": "alphanumeric-mask", "minlength": 8, "maxlength": 11, "value": "$bic$", "help": "'.$help_codice_bic.'" ]}
diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index bc84539aa..505b6d303 100755 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -171,6 +171,10 @@ if ($module['name'] == 'Ddt di vendita') {
+ {[ "type": "select", "label": "", "name": "idvettore", "ajax-source": "vettori", "value": "$idvettore$", "disabled": , "required": , "icon-after": "add||tipoanagrafica=Vettore&readonly_tipo=1|btn_idvettore|" ]}
From 21005e4e8829a7c5509bee2bf22656f1da5e4eb3 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Fri, 30 Oct 2020 14:19:02 +0100 Subject: [PATCH 2/9] Miglioramenti JS minori per inserimento articolo --- include/common/articolo.php | 104 ++++++++++---------------- modules/articoli/ajax/complete.php | 5 +- plugins/dettagli_articolo/actions.php | 4 +- plugins/dettagli_articolo/edit.php | 6 +- update/2_4_18.sql | 2 +- 5 files changed, 50 insertions(+), 71 deletions(-) diff --git a/include/common/articolo.php b/include/common/articolo.php index 3dd9275d4..43457ce12 100755 --- a/include/common/articolo.php +++ b/include/common/articolo.php @@ -49,11 +49,8 @@ if (empty($result['idarticolo'])) {