Fix: Var not defined
This commit is contained in:
parent
10117d045f
commit
8d4fc263c5
@ -30,6 +30,8 @@
|
|||||||
class BookKeeping
|
class BookKeeping
|
||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
|
var $error;
|
||||||
|
|
||||||
var $id;
|
var $id;
|
||||||
var $doc_date;
|
var $doc_date;
|
||||||
var $doc_type;
|
var $doc_type;
|
||||||
|
|||||||
@ -58,8 +58,10 @@ if ($user->societe_id > 0)
|
|||||||
|
|
||||||
$action = GETPOST('action');
|
$action = GETPOST('action');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$year_current = strftime("%Y", dol_now());
|
$year_current = strftime("%Y", dol_now());
|
||||||
@ -152,9 +154,6 @@ if ($result) {
|
|||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Actions
|
|
||||||
*/
|
|
||||||
// Bookkeeping Write
|
// Bookkeeping Write
|
||||||
if ($action == 'writebookkeeping') {
|
if ($action == 'writebookkeeping') {
|
||||||
$now = dol_now();
|
$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;
|
$sep = $conf->global->ACCOUNTING_SEPARATORCSV;
|
||||||
|
|
||||||
header('Content-Type: text/csv');
|
header('Content-Type: text/csv');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user