From 6c0cd2a8cf788917c445d85491a1e263aeb81877 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Mon, 9 Jul 2018 16:12:27 +0200 Subject: [PATCH] Aggiunto blocco fatture Emesse --- editor.php | 22 ++++++++++++++-------- modules/fatture/edit.php | 4 ++-- src/HTMLBuilder/Manager/FileManager.php | 6 +++--- 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/editor.php b/editor.php index 1120661af..58c2b35be 100755 --- a/editor.php +++ b/editor.php @@ -239,17 +239,23 @@ echo ' fetchArray('SELECT co_tipidocumento.descrizione, dir FROM co_tipidocumento INNER JOIN co_documenti ON co_tipidocumento.id=co_documenti.idtipodocumento WHERE co_documenti.id='.prepare($id_record)); $dir = $rs[0]['dir']; @@ -84,7 +84,7 @@ if ($dir == 'entrata') {
- {[ "type": "select", "label": "", "name": "idstatodocumento", "required": 1, "values": "query=SELECT * FROM co_statidocumento", "value": "$idstatodocumento$", "extra": " onchange = \"if ($('#idstatodocumento option:selected').text()=='Pagato'){if( confirm('Sicuri di voler impostare manualmente la fattura come pagata senza aggiungerla in prima nota?') ){ return true; }else{ $('#idstatodocumento').selectSet(); }}\" " ]} + {[ "type": "select", "label": "", "name": "idstatodocumento", "required": 1, "values": "query=SELECT * FROM co_statidocumento", "value": "$idstatodocumento$", "class": "unblockable", "extra": " onchange = \"if ($('#idstatodocumento option:selected').text()=='Pagato'){if( confirm('Sicuri di voler impostare manualmente la fattura come pagata senza aggiungerla in prima nota?') ){ return true; }else{ $('#idstatodocumento').selectSet(); }}\" " ]}
diff --git a/src/HTMLBuilder/Manager/FileManager.php b/src/HTMLBuilder/Manager/FileManager.php index d1bb2eef8..8734fdf37 100644 --- a/src/HTMLBuilder/Manager/FileManager.php +++ b/src/HTMLBuilder/Manager/FileManager.php @@ -147,15 +147,15 @@ class FileManager implements ManagerInterface '.$options['label'].'
- {[ "type": "text", "placeholder": "'.tr('Nome').'", "name": "nome_allegato" ]} + {[ "type": "text", "placeholder": "'.tr('Nome').'", "name": "nome_allegato", "class": "unblockable" ]}
- {[ "type": "text", "placeholder": "'.tr('Categoria').'", "name": "categoria" ]} + {[ "type": "text", "placeholder": "'.tr('Categoria').'", "name": "categoria", "class": "unblockable" ]}
- {[ "type": "file", "placeholder": "'.tr('File').'", "name": "blob" ]} + {[ "type": "file", "placeholder": "'.tr('File').'", "name": "blob", "class": "unblockable" ]}