diff --git a/modules/custom_fields/edit.php b/modules/custom_fields/edit.php index 6b2e90d74..6eacfc2d9 100644 --- a/modules/custom_fields/edit.php +++ b/modules/custom_fields/edit.php @@ -10,7 +10,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "select", "label": "", "name": "module_id", "values": "query=SELECT id, name as text FROM zz_modules WHERE enabled = 1", "value": "$id_module$" ]} + {[ "type": "select", "label": "", "name": "module_id", "values": "query=SELECT id, name as text FROM zz_modules WHERE enabled = 1", "value": "" ]}
diff --git a/update/2_4_2.sql b/update/2_4_2.sql index 2ae485099..d48eac2db 100644 --- a/update/2_4_2.sql +++ b/update/2_4_2.sql @@ -585,4 +585,8 @@ UPDATE `co_preventivi` SET `master_revision` = `id`, `default_revision` = 1; -- Colonna natura iva e codice iva INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `visible`, `summable`, `default`) VALUES (NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'IVA'), 'Natura', 'codice_natura_fe', 2, 1, 0, 0, 1, 0, 1), -(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'IVA'), 'Codice', 'codice', 1, 1, 0, 0, 1, 0, 1); \ No newline at end of file +(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'IVA'), 'Codice', 'codice', 1, 1, 0, 0, 1, 0, 1); + +-- Colonna codice modalità pagamento +INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `visible`, `summable`, `default`) VALUES +(NULL, (SELECT `id` FROM `zz_modules` WHERE `name` = 'Pagamenti'), 'Codice pagamento', 'CONCAT(codice_modalita_pagamento_fe, '' - '', (SELECT descrizione FROM fe_modalita_pagamento WHERE codice = codice_modalita_pagamento_fe) )', 2, 1, 0, 0, 1, 0, 1); \ No newline at end of file