noalyss Version-9
|
Parent class for the print_ledger class. More...
Public Member Functions | |
__construct (\Database $p_cn, $orientation, $unit, $format, Acc_Ledger $p_ledger, $p_from, $p_to, $p_filter_operation) | |
integer parm_periode.p_id , end periode; More... | |
get_filter_operation () | |
get_from () | |
get_ledger () | |
get_to () | |
set_filter_operation ($filter_operation) | |
Filter the operations ,. More... | |
set_from ($from) | |
set_ledger ($ledger) | |
set_to ($to) | |
Public Member Functions inherited from PDF | |
__construct (Database $p_cn, $orientation='P', $unit='mm', $format='A4') | |
Footer () | |
get_tiers ($p_jr_id, $p_jrn_type) | |
retrieve the client name and quick_code More... | |
Header () | |
set_filter_operation ($filter_operation) | |
setDossierInfo ($dossier="n/a") | |
Public Member Functions inherited from PDF_Core | |
__construct ( $orientation='P', $unit='mm', $format='A4') | |
get_margin_bottom () | |
get_margin_left () | |
get_margin_right () | |
get_margin_top () | |
get_orientation () | |
get_page_size () | |
get_unit () | |
is_fill ($p_step) | |
If the step is even then return 1 and set the backgroup color to blue , otherwise returns 0, and set the background color to white It is use to compute alternated colored row , it the parameter fill in write_cell and cell. More... | |
line_new ($p_step=null) | |
Print all the cell stored and call Ln (new line) More... | |
LongLine ($w, $h, $txt, $border=0, $align='', $fill=false) | |
write_cell ($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='') | |
Static Public Member Functions | |
static | available_ledger ($get_from_periode) |
find all the active ledger for the exerice of the periode and readable by the current user @global type $g_user More... | |
static | factory (Database $cn, $p_type_export, Acc_Ledger $p_ledger, $p_from, $p_to, $p_filter_operation) |
Create an object Print_Ledger* depending on $p_type_export ( 0 => accounting 1-> one row per operation 2-> detail of item) More... | |
Protected Member Functions | |
build_filter_operation () | |
Build a SQL clause to filter operation depending if they are paid, unpaid or no filter. More... | |
Protected Member Functions inherited from PDF_Core | |
print_row () | |
print the current array of cell and reset it , if different colors are set on the same row you have to print it before changing More... | |
Protected Attributes | |
$filter_operation | |
Private Attributes | |
$from | |
$ledger | |
concerned Ledger More... | |
$to | |
integer parm_periode.p_id , start periode; More... | |
Additional Inherited Members | |
Data Fields inherited from PDF | |
$cn = null | |
$date = "" | |
$dossier = "n/a" | |
$own = null | |
$soc = "" | |
Parent class for the print_ledger class.
Strategie class for the print_ledger class
Definition at line 31 of file print_ledger.class.php.
Print_Ledger::__construct | ( | \Database | $p_cn, |
$orientation, | |||
$unit, | |||
$format, | |||
Acc_Ledger | $p_ledger, | ||
$p_from, | |||
$p_to, | |||
$p_filter_operation | |||
) |
integer parm_periode.p_id , end periode;
Definition at line 37 of file print_ledger.class.php.
References from, set_filter_operation(), and to.
|
static |
find all the active ledger for the exerice of the periode and readable by the current user @global type $g_user
int | $get_from_periode |
Definition at line 257 of file print_ledger.class.php.
References $a, PDF\$cn, $exercice, $g_user, $get_from_periode, $i, $nb_jrn, $periode, $sql, and Dossier\connect().
Referenced by Acc_Ledger\get_rowSimple().
|
protected |
Build a SQL clause to filter operation depending if they are paid, unpaid or no filter.
Definition at line 309 of file print_ledger.class.php.
References $sql_filter, and get_filter_operation().
|
static |
Create an object Print_Ledger* depending on $p_type_export ( 0 => accounting 1-> one row per operation 2-> detail of item)
Database | $cn | |
char | $p_type_export | E(xtended) L(isting) A(ccounting) D(etail) |
Acc_Ledger | $ledger |
@Bug Strange PHP Bug when autoloader is not used , the require_once doesn't seems to work properly and does not include the files , except if you put them here
if you put them on the top of this file, export_ledger_pdf.php will include the files but not export_ledger_csv.php
For PDF output
Definition at line 110 of file print_ledger.class.php.
References PDF\$cn, $jrn_type, PDF\$own, $pdf, elseif, and Acc_Ledger\get_type().
Print_Ledger::get_filter_operation | ( | ) |
Definition at line 84 of file print_ledger.class.php.
References $filter_operation.
Referenced by build_filter_operation(), and Print_Ledger_Simple_Without_Vat\export().
Print_Ledger::get_from | ( | ) |
Definition at line 57 of file print_ledger.class.php.
References $from.
Referenced by Print_Ledger_Simple\__construct(), Print_Ledger_Financial\__construct(), Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), and Print_Ledger_Simple_Without_Vat\export().
Print_Ledger::get_ledger | ( | ) |
Definition at line 52 of file print_ledger.class.php.
References $ledger.
Referenced by Print_Ledger_Simple_Without_Vat\__construct(), Print_Ledger_Simple\__construct(), Print_Ledger_Financial\__construct(), Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), Print_Ledger_Simple\export(), Print_Ledger_Simple_Without_Vat\export(), and Print_Ledger_Detail_Item\Footer().
Print_Ledger::get_to | ( | ) |
Definition at line 62 of file print_ledger.class.php.
References $to.
Referenced by Print_Ledger_Detail\export(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), and Print_Ledger_Simple_Without_Vat\export().
Print_Ledger::set_filter_operation | ( | $filter_operation | ) |
Filter the operations ,.
string | $filter_operation | : all , paid, unpaid |
Exception | 5 , if filter invalid |
Reimplemented from PDF.
Definition at line 94 of file print_ledger.class.php.
References $filter_operation.
Referenced by __construct().
Print_Ledger::set_from | ( | $from | ) |
Print_Ledger::set_ledger | ( | $ledger | ) |
Definition at line 67 of file print_ledger.class.php.
References $ledger.
Print_Ledger::set_to | ( | $to | ) |
|
protected |
Definition at line 33 of file print_ledger.class.php.
Referenced by get_filter_operation(), and set_filter_operation().
|
private |
Definition at line 35 of file print_ledger.class.php.
Referenced by get_from(), and set_from().
|
private |
concerned Ledger
Definition at line 34 of file print_ledger.class.php.
Referenced by Print_Ledger_Detail\__construct(), Print_Ledger_Detail_Item\export(), Print_Ledger_Financial\export(), Print_Ledger_Misc\export(), Print_Ledger_Simple\export(), Print_Ledger_Simple_Without_Vat\export(), get_ledger(), and set_ledger().
|
private |
integer parm_periode.p_id , start periode;
Definition at line 36 of file print_ledger.class.php.