diff --git a/modules/primanota/add.php b/modules/primanota/add.php index d9e5b8c23..cfe42da21 100644 --- a/modules/primanota/add.php +++ b/modules/primanota/add.php @@ -2,7 +2,7 @@ include_once __DIR__.'/../../core.php'; -?>
+?> diff --git a/modules/primanota/edit.php b/modules/primanota/edit.php index 7ffc797cd..cdd5088c9 100644 --- a/modules/primanota/edit.php +++ b/modules/primanota/edit.php @@ -10,23 +10,24 @@ include_once __DIR__.'/../../core.php'; +
fetchArray('SELECT dir FROM co_tipidocumento INNER JOIN co_documenti ON co_tipidocumento.id=co_documenti.idtipodocumento WHERE co_documenti.id='.prepare($records[0]['iddocumento'])); $modulo = ($rs[0]['dir'] == 'entrata') ? 'Fatture di vendita' : 'Fatture di acquisto'; ?> -
+
+
-
-
+
{[ "type": "date", "label": "", "name": "data", "required": 1, "value": "$data$" ]}
-
+
{[ "type": "text", "label": "", "name": "descrizione", "required": 1, "value": "$descrizione$" ]}
@@ -210,12 +211,15 @@ include_once __DIR__.'/../../core.php'; if( bilancio == 0 ){ $("#testo_aggiuntivo").removeClass('text-danger').html(""); - $("button[type=submit]").removeClass('hide'); + //$("button[type=submit]").removeClass('hide'); + $("#save").removeClass('hide'); + } else{ $("#testo_aggiuntivo").addClass('text-danger').html("sbilancio di " + bilancio.toLocale() + " €" ); - $("button[type=submit]").addClass('hide'); + //$("button[type=submit]").addClass('hide'); + $("#save").addClass('hide'); } }