From 9a0dc79ee994b066d93e71a984ad21f8440c9445 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Thu, 14 Jan 2021 17:01:57 +0100 Subject: [PATCH] Fix causale predefinita ddt --- modules/causali/edit.php | 25 +++++++++++++------------ modules/ddt/add.php | 4 ++-- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/modules/causali/edit.php b/modules/causali/edit.php index f075774e2..809909d56 100755 --- a/modules/causali/edit.php +++ b/modules/causali/edit.php @@ -25,29 +25,30 @@ include_once __DIR__.'/../../core.php';
-
+
{[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
- -
- {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$", "help":"." ]} -
- -
+
+
+

-
- {[ "type": "checkbox", "label": "", "name": "is_importabile", "value": "$is_importabile$", "help": "", "placeholder": "" ]} -
-
- {[ "type": "checkbox", "label": "", "name": "reversed", "value": "$reversed$", "help": "", "placeholder": "" ]} +
+ {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$", "help":"." ]} +
+
+ {[ "type": "checkbox", "label": "", "name": "is_importabile", "value": "$is_importabile$", "help": "", "placeholder": "" ]} +
+
+ {[ "type": "checkbox", "label": "", "name": "reversed", "value": "$reversed$", "help": "", "placeholder": "" ]} +
diff --git a/modules/ddt/add.php b/modules/ddt/add.php index 96ce5cd3b..ef451aadf 100755 --- a/modules/ddt/add.php +++ b/modules/ddt/add.php @@ -36,7 +36,7 @@ if ($module['name'] == 'Ddt di vendita') { $tipo_anagrafica = tr('Fornitore'); $label = tr('Mittente'); } - +$id_causalet = $dbo->fetchOne('SELECT id FROM dt_causalet WHERE predefined=1')['id']; $id_anagrafica = !empty(get('idanagrafica')) ? get('idanagrafica') : ''; ?>
@@ -62,7 +62,7 @@ $id_anagrafica = !empty(get('idanagrafica')) ? get('idanagrafica') : '';
- {[ "type": "select", "label": "", "name": "idcausalet", "required": 1, "value": "$idcausalet$", "ajax-source": "causali", "icon-after": "add||||" ]} + {[ "type": "select", "label": "", "name": "idcausalet", "required": 1, "value": "", "ajax-source": "causali", "icon-after": "add||||" ]}