From d4c54770ed7f1717b8426c6a9ea13b9e14a4baaa Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 20 Nov 2018 12:51:35 +0100 Subject: [PATCH] Fix nome colonna 'Cliente' ddt vendita e acquisto --- modules/ddt/edit.php | 2 +- update/2_4_3.sql | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 update/2_4_3.sql diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index 51f1efdb3..0e6c30a19 100644 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -98,7 +98,7 @@ if ($module['name'] == 'Ddt di vendita') {
- {[ "type": "select", "label": "", "name": "idsede", "values": "query=SELECT id, CONCAT_WS(', ', nomesede, citta) AS descrizione FROM an_sedi WHERE (idanagrafica='$idanagrafica$' OR idanagrafica=(SELECT valore FROM zz_settings WHERE nome='Azienda predefinita')) UNION SELECT '0' AS id, 'Sede legale' AS descrizione ORDER BY descrizione", "value": "$idsede$", "readonly": "" ]} + {[ "type": "select", "label": "", "name": "idsede", "ajax-source": "sedi", "value": "$idsede$", "readonly": "" ]}
diff --git a/update/2_4_3.sql b/update/2_4_3.sql new file mode 100644 index 000000000..f64bfd158 --- /dev/null +++ b/update/2_4_3.sql @@ -0,0 +1,3 @@ +-- Fix nome colonna 'Cliente' ddt vendita e acquisto +UPDATE `zz_views` SET `name` = 'Ragione sociale' WHERE `zz_views`.`id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Ddt di vendita') AND name = 'Cliente'; +UPDATE `zz_views` SET `name` = 'Ragione sociale' WHERE `zz_views`.`id_module` = (SELECT `id` FROM `zz_modules` WHERE `name` = 'Ddt di acquisto') AND name = 'Cliente'; \ No newline at end of file