From 93db5f723f637a183409a2807482e858080d42a2 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Thu, 24 Sep 2020 17:27:33 +0200 Subject: [PATCH] Aggiunto ID Creditore SEPA per Banche --- modules/banche/actions.php | 1 + modules/banche/edit.php | 4 ++++ update/2_4_18.sql | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/banche/actions.php b/modules/banche/actions.php index ec0fee2b6..db8c19f65 100755 --- a/modules/banche/actions.php +++ b/modules/banche/actions.php @@ -57,6 +57,7 @@ switch (filter('op')) { $banca->note = post('note'); $banca->id_pianodeiconti3 = post('id_pianodeiconti3'); $banca->filiale = post('filiale'); + $banca->creditor_id = post('creditor_id'); $banca->predefined = post('predefined'); diff --git a/modules/banche/edit.php b/modules/banche/edit.php index 7ff407254..3dd00ba0d 100755 --- a/modules/banche/edit.php +++ b/modules/banche/edit.php @@ -62,6 +62,10 @@ include_once __DIR__.'/../../core.php';
{[ "type": "text", "label": "", "name": "bic", "required": "1", "class": "alphanumeric-mask", "maxlength": 11, "value": "$bic$" ]}
+ +
+ {[ "type": "text", "label": "", "name": "creditor_id", "class": "alphanumeric-mask", "value": "$creditor_id$", "help": "" ]} +
diff --git a/update/2_4_18.sql b/update/2_4_18.sql index 4d6b423e3..b81381417 100644 --- a/update/2_4_18.sql +++ b/update/2_4_18.sql @@ -179,7 +179,7 @@ UPDATE `zz_plugins` SET `options` = ' { "main_query": [ { "type": "table", "fiel UPDATE `zz_plugins` SET `options` = '{"main_query": [{"type": "table", "fields": "Numero, Data inizio, Data fine, Tipo", "query": "SELECT in_interventi.id, in_interventi.codice AS Numero, DATE_FORMAT(MAX(orario_inizio),''%d/%m/%Y'') AS ''Data inizio'', DATE_FORMAT(MAX(orario_fine),''%d/%m/%Y'') AS ''Data fine'', (SELECT descrizione FROM in_tipiintervento WHERE idtipointervento=in_interventi.idtipointervento) AS ''Tipo'', (SELECT `id` FROM `zz_modules` WHERE `name` = ''Interventi'') AS _link_module_, in_interventi.id AS _link_record_ FROM in_interventi LEFT JOIN `in_interventi_tecnici` ON `in_interventi_tecnici`.`idintervento` = `in_interventi`.`id` LEFT JOIN `in_statiintervento` ON `in_interventi`.`idstatointervento`=`in_statiintervento`.`idstatointervento` WHERE 1=1 AND in_interventi.deleted_at IS NULL AND idanagrafica = |id_parent| GROUP BY `in_interventi`.`id` HAVING 2=2 ORDER BY in_interventi.id DESC"}]}'; -- Aggiornamento del modulo Banche per il supporto completo alle Anagrafiche -ALTER TABLE `co_banche` ADD `id_anagrafica` INT(11) NOT NULL, CHANGE `note` `note` TEXT, CHANGE `filiale` `filiale` varchar(255), ADD `predefined` BOOLEAN NOT NULL DEFAULT FALSE; +ALTER TABLE `co_banche` ADD `id_anagrafica` INT(11) NOT NULL, CHANGE `note` `note` TEXT, CHANGE `filiale` `filiale` varchar(255), ADD `predefined` BOOLEAN NOT NULL DEFAULT FALSE, ADD `creditor_id` varchar(255); UPDATE `co_banche` SET `id_anagrafica` = (SELECT `valore` FROM `zz_settings` WHERE `nome` = 'Azienda predefinita'); ALTER TABLE `co_banche` ADD FOREIGN KEY (`id_anagrafica`) REFERENCES `an_anagrafiche`(`idanagrafica`) ON DELETE CASCADE;