From 555344064ca14061cfb7766ca8a8ee906e3b127b Mon Sep 17 00:00:00 2001 From: Luca Date: Wed, 15 Nov 2017 18:41:59 +0100 Subject: [PATCH] Bugfix --- modules/articoli/edit.php | 81 +++++++++++++++++++++------------------ modules/ddt/edit.php | 2 + modules/viste/edit.php | 4 +- update/2_3.sql | 3 ++ 4 files changed, 51 insertions(+), 39 deletions(-) diff --git a/modules/articoli/edit.php b/modules/articoli/edit.php index be75afaa1..d6e019956 100644 --- a/modules/articoli/edit.php +++ b/modules/articoli/edit.php @@ -29,7 +29,11 @@ $_SESSION['superselect']['id_categoria'] = $records[0]['id_categoria'];
+ {[ "type": "text", "label": "", "name": "codice", "required": 1, "value": "$codice$" ]} +
+ {[ "type": "checkbox", "label": "", "name": "attivo", "value": "$attivo$", "help": "", "placeholder": "" ]} +
@@ -45,10 +49,10 @@ $_SESSION['superselect']['id_categoria'] = $records[0]['id_categoria'];
-
+
{[ "type": "number", "label": "", "name": "qta", "required": 1, "value": "$qta$", "readonly": 1, "decimals": "qta|undefined" ]}
-
+
{[ "type": "checkbox", "label": "", "name": "qta_manuale", "value": 0, "help": "", "placeholder": "" ]} '; + } + ?> + +
+ {[ "type": "checkbox", "label": "", "name": "abilita_serial", "value": "$abilita_serial$", "help": "", "placeholder": "" ]} +
+ +
+ +
-
+
+ {[ "type": "number", "label": "", "name": "prezzo_acquisto", "value": "$prezzo_acquisto$", "icon-after": "€" ]} +
+
+ + +
+
{[ "type": "number", "label": "", "name": "prezzo_vendita", "value": "$prezzo_vendita$", "icon-after": "€" ]}
{[ "type": "select", "label": "", "name": "idiva_vendita", "values": "query=SELECT * FROM co_iva ORDER BY descrizione ASC", "value": "$idiva_vendita$", "valore_predefinito": "Iva predefinita" ]}
+ +
+ {[ "type": "number", "label": "", "name": "gg_garanzia", "decimals": 0, "value": "$gg_garanzia$", "icon-after": "GG" ]} +
-
- {[ "type": "checkbox", "label": "", "name": "attivo", "value": "$attivo$", "help": "", "placeholder": "" ]} -
- -
- {[ "type": "checkbox", "label": "", "name": "abilita_serial", "value": "$abilita_serial$", "help": "", "placeholder": "" ]} -
-fetchArray("SELECT id FROM zz_plugins WHERE name='Serial'"); - - echo ' - '; - } -?> -
- -
-
- {[ "type": "number", "label": "", "name": "prezzo_acquisto", "value": "$prezzo_acquisto$", "icon-after": "€" ]} -
- -
- {[ "type": "number", "label": "", "name": "threshold_qta", "value": "$threshold_qta$", "decimals": "qta" ]} -
- -
- {[ "type": "number", "label": "", "name": "gg_garanzia", "decimals": 0, "value": "$gg_garanzia$" ]} -
+
+ +
-
+ +
{[ "type": "number", "label": "", "name": "peso_lordo", "value": "$peso_lordo$", "icon-after": "KG" ]}
-
+
{[ "type": "number", "label": "", "name": "volume", "value": "$volume$", "icon-after": "M3" ]}
diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index 3069073d2..234668d17 100644 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -183,6 +183,8 @@ include $docroot.'/modules/ddt/row-list.php';
+{( "name": "filelist_and_upload", "id_module": "", "id_record": "" )} +