noalyss
Version-9
include
export
export_rec_csv.php
Go to the documentation of this file.
1
<?php
2
//This file is part of NOALYSS and is under GPL
3
//see licence.txt
4
5
/**
6
* Export to CSV the operations asked in impress_rec.inc.php
7
* variable set $g_user,$cn
8
* @see impress_rec.inc.php
9
*/
10
if
( ! defined (
'ALLOWED'
) ) die(
'Appel direct ne sont pas permis'
);
11
12
require_once NOALYSS_INCLUDE.
'/lib/ac_common.php'
;
13
$http
=
new
HttpInput
();
14
try
15
{
16
$choice
=
$http
->get(
"choice"
);
17
$p_start
=
$http
->get(
"p_start"
);
18
$p_end
=
$http
->get(
"p_end"
);
19
$r_jrn
=
$http
->get(
"r_jrn"
,
"string"
,
""
);
20
21
}
22
catch
(Exception $exc)
23
{
24
error_log($exc->getTraceAsString());
25
return
;
26
}
27
28
// -------------------------
29
// Create object and export
30
$acc_reconciliation
=
new
Acc_Reconciliation
(
$cn
);
31
$acc_reconciliation
->a_jrn=
$r_jrn
;
32
$acc_reconciliation
->start_day=
$p_start
;
33
$acc_reconciliation
->end_day=
$p_end
;
34
35
$array
=
$acc_reconciliation
->export_csv(
$choice
);
$acc_reconciliation
catch(Exception $exc) $acc_reconciliation
Definition:
export_rec_csv.php:30
$p_end
$p_end
Definition:
export_rec_csv.php:18
HttpInput
manage the http input (get , post, request) and extract from an array
Definition:
http_input.class.php:37
$http
$http
Definition:
export_rec_csv.php:13
Acc_Reconciliation
new class for managing the reconciliation it must be used instead of the function InsertRapt,...
Definition:
acc_reconciliation.class.php:32
$cn
$cn
Definition:
ajax_anc_accounting.php:30
$p_start
$p_start
Definition:
export_rec_csv.php:17
$r_jrn
$r_jrn
Definition:
export_rec_csv.php:19
$choice
$choice
Definition:
impress_rec.inc.php:37
$array
$array
Definition:
export_rec_csv.php:35