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