Fix: Var not defined

This commit is contained in:
Laurent Destailleur 2014-11-16 18:37:09 +01:00
parent 10117d045f
commit 8d4fc263c5
2 changed files with 14 additions and 6 deletions

View File

@ -30,6 +30,8 @@
class BookKeeping
{
var $db;
var $error;
var $id;
var $doc_date;
var $doc_type;

View File

@ -58,8 +58,10 @@ if ($user->societe_id > 0)
$action = GETPOST('action');
/*
* View
* Actions
*/
$year_current = strftime("%Y", dol_now());
@ -152,9 +154,6 @@ if ($result) {
dol_print_error($db);
}
/*
* Actions
*/
// Bookkeeping Write
if ($action == 'writebookkeeping') {
$now = dol_now();
@ -237,9 +236,16 @@ if ($action == 'writebookkeeping') {
}
}
// export csv
if ($action == 'export_csv') {
/*
* View
*/
$companystatic = new Societe($db);
// export csv
if ($action == 'export_csv')
{
$sep = $conf->global->ACCOUNTING_SEPARATORCSV;
header('Content-Type: text/csv');