From 8a0ba1c725319cc43ed95e408aab8ee191148f73 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Wed, 1 Sep 2021 16:20:11 +0200 Subject: [PATCH 1/3] Fix inserimento vettore in ddt --- modules/ddt/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index 6c4f93c9f..dac0b7023 100755 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -192,7 +192,7 @@ if ($module['name'] == 'Ddt di vendita') { 'id' => $record['idspedizione'], ])['esterno']; ?> - {[ "type": "select", "label": "", "name": "idvettore", "ajax-source": "vettori", "value": "$idvettore$", "disabled": , "required": , "icon-after": "add||tipoanagrafica=Vettore&readonly_tipo=1|btn_idvettore|" ]} + {[ "type": "select", "label": "", "name": "idvettore", "ajax-source": "vettori", "value": "$idvettore$", "disabled": , "required": , "icon-after": "add||tipoanagrafica=Vettore&readonly_tipo=1|btn_idvettore|", "class": "" ]}
From 91213c0165eacc688e90cfb6dfc157bfb8188f7c Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Wed, 1 Sep 2021 16:29:57 +0200 Subject: [PATCH 2/3] Fix importazione fatture di acquisto --- plugins/importFE/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/importFE/init.php b/plugins/importFE/init.php index 81ce24648..8d8a08bac 100755 --- a/plugins/importFE/init.php +++ b/plugins/importFE/init.php @@ -38,7 +38,7 @@ if (isset($id_record)) { } // Rimozione .p7m dal nome del file (causa eventuale estrazione da ZIP) - $record['name'] = str_replace('.p7m', '', $record['name']); + $record['name'] = preg_replace('/(.+)\.p7m$/i', '{1}', $record['name']); if (empty($record)) { flash()->warning(tr('Nessuna fattura da importare!')); From 59b69d66ee888d412cc8fa3b018d3b1a436839bb Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 1 Sep 2021 17:14:35 +0200 Subject: [PATCH 3/3] Retrofix per colonne Sedi e Referenti in tabella Anagrafiche filtrabili --- update/2_4_25.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update/2_4_25.sql b/update/2_4_25.sql index a155f9369..f7bcff772 100644 --- a/update/2_4_25.sql +++ b/update/2_4_25.sql @@ -61,5 +61,5 @@ ALTER TABLE `my_componenti` ADD FOREIGN KEY (`id_intervento`) REFERENCES `in_int -- Aggiunte colonne Sedi e Referenti in tabella Anagrafiche 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 = 'Anagrafiche'), 'Referenti', '(SELECT GROUP_CONCAT(nome SEPARATOR '', '') FROM an_referenti WHERE an_referenti .idanagrafica = an_anagrafiche.idanagrafica)', 11, 0, 0, 0, '', '', 1, 0, 1), -(NULL, (SELECT `id` FROM `zz_modules` WHERE name = 'Anagrafiche'), 'Sedi', '(SELECT GROUP_CONCAT(nomesede SEPARATOR '', '') FROM an_sedi WHERE an_sedi.idanagrafica = an_anagrafiche.idanagrafica)', 10, 0, 0, 0, '', '', 1, 0, 1); +(NULL, (SELECT `id` FROM `zz_modules` WHERE name = 'Anagrafiche'), 'Referenti', '(SELECT GROUP_CONCAT(nome SEPARATOR '', '') FROM an_referenti WHERE an_referenti .idanagrafica = an_anagrafiche.idanagrafica)', 11, 1, 0, 0, '', '', 1, 0, 1), +(NULL, (SELECT `id` FROM `zz_modules` WHERE name = 'Anagrafiche'), 'Sedi', '(SELECT GROUP_CONCAT(nomesede SEPARATOR '', '') FROM an_sedi WHERE an_sedi.idanagrafica = an_anagrafiche.idanagrafica)', 10, 1, 0, 0, '', '', 1, 0, 1);