|
noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
|
Parent class for the print_ledger class. More...
Inheritance diagram for Print_Ledger:
Collaboration diagram for Print_Ledger:Public Member Functions | |
| __construct (\Database $p_cn, $orientation, $unit, $format, Acc_Ledger $p_ledger, $p_from, $p_to, $p_filter_operation) | |
| get_filter_operation () | |
| get_from () | |
| get_ledger () | |
| get_to () | |
| set_filter_operation ($filter_operation) | |
| Filter the operations ,. | |
| 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 | |
| Header () | |
| setDossierInfo ($dossier="n/a") | |
Public Member Functions inherited from PDF_Core | |
| __construct ( $orientation='P', $unit='mm', $format='A4') | |
| fill_row ($enable) | |
| set color for row , | |
| 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. | |
| line_new ($p_step=null) | |
| Print all the cell stored and call Ln (new line) | |
| LongLine ($w, $h, $txt, $border=0, $align='', $fill=false) | |
| add a cell with automatic return to the line if the text is too long, deprecated , it calls only PDFCore::write_cell_ | |
| write_cell ($width, $height=0, $txt='', $border=0, $interline=0, $align='', $fill=false, $link='') | |
| add a cell the text is not cut and don't return to this line if too large | |
| write_multi ($width, $interline, $txt, $border=0, $align='', $fill=false) | |
| add a cell with automatic return to the line if the text is too long | |
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 | |
| 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) | |
Static Public Member Functions inherited from PDF | |
| static | test_me () |
| test the class | |
Protected Member Functions | |
| build_filter_operation () | |
| Build a SQL clause to filter operation depending if they are paid, unpaid or no filter. | |
Protected Member Functions inherited from PDF_Core | |
| add_cell (Cellule $Ce) | |
| check_page_add () | |
| Check if a page must be added due a MultiCell. | |
| count_nb_row ($p_text, $p_colSize) | |
| Count the number of rows a p_text will take for a multicell. | |
| 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 | |
Protected Attributes | |
| $a_Tva | |
| $other_tax_previous (array) | |
| $filter_operation | |
| See Acc_Ledger_History::filter_operation. | |
| $flag_other_tax | |
| $flag_other_tax(bool) true if other tax exists | |
| $from | |
| $jrn_type | |
| $ledger | |
| concerned Ledger | |
| $other_tax_previous | |
| $previous | |
| internal variables for computing sum on PDF Listing | |
| $rap_htva | |
| $previous (array) see Acc_Ledger->previous_amount | |
| $rap_nd | |
| $rap_nd (float) $no-deductible tax | |
| $rap_other | |
| VAT when page starts. | |
| $rap_other_tax | |
| $rap_other_tav, amount to report for other tax than VAT | |
| $rap_priv | |
| $rap_priv (float) personal expense | |
| $rap_tva | |
| $rap_tva array(tva_id,amount) | |
| $rap_tva_np | |
| $rap_tva_np VAT not deductible | |
| $rap_tvac | |
| $rap_tvac (float) previous amount | |
| $show_col | |
| $to | |
| $tp_htva | |
| $tp_htva (float) total page price w/o VAT | |
| $tp_nd | |
| $tp_nd (float) total page price w/o VAT | |
| $tp_priv | |
| $tp_priv (float) total page personal expense | |
| $tp_tva | |
| $tp_tva (float) total page VAT | |
| $tp_tva_np | |
| $tp_tva_np (float) total page not deductible | |
| $tp_tvac | |
| $tp_tvac (float) total page full price All Tax Incl. | |
Protected Attributes inherited from PDF_Core | |
| $bigger | |
| $cells =array() | |
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 32 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 ) |
Definition at line 67 of file print_ledger.class.php.
References from, set_filter_operation(), and to.
Here is the call graph for this function:
|
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 287 of file print_ledger.class.php.
References $a, PDF\$cn, $exercice, $g_user, $get_from_periode, $i, $nb_jrn, $periode, and $sql.
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 339 of file print_ledger.class.php.
References $sql_filter, _, and get_filter_operation().
Here is the call graph for this function:
|
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
Print Detail Operation + Item
Accounting
Definition at line 140 of file print_ledger.class.php.
References PDF\$cn, $jrn_type, PDF\$own, $pdf, _, elseif, and Acc_Ledger\get_type().
Here is the call graph for this function:| Print_Ledger::get_filter_operation | ( | ) |
Definition at line 114 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 87 of file print_ledger.class.php.
References $from.
Referenced by Print_Ledger_Financial\__construct(), Print_Ledger_Simple\__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 82 of file print_ledger.class.php.
References $ledger.
Referenced by Print_Ledger_Financial\__construct(), Print_Ledger_Simple\__construct(), Print_Ledger_Simple_Without_Vat\__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 92 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 124 of file print_ledger.class.php.
References $filter_operation, and _.
Referenced by __construct().
| Print_Ledger::set_from | ( | $from | ) |
| Print_Ledger::set_ledger | ( | $ledger | ) |
Definition at line 97 of file print_ledger.class.php.
References $ledger.
| Print_Ledger::set_to | ( | $to | ) |
|
protected |
$other_tax_previous (array)
$a_Tva array ( tva_id,tva_label,tva_poste ) of existing_vat
Definition at line 52 of file print_ledger.class.php.
|
protected |
See Acc_Ledger_History::filter_operation.
Definition at line 34 of file print_ledger.class.php.
Referenced by get_filter_operation(), and set_filter_operation().
|
protected |
$flag_other_tax(bool) true if other tax exists
Definition at line 57 of file print_ledger.class.php.
|
protected |
Definition at line 37 of file print_ledger.class.php.
Referenced by get_from(), and set_from().
|
protected |
Definition at line 53 of file print_ledger.class.php.
Referenced by Print_Ledger_Detail_Item\export(), and factory().
|
protected |
concerned Ledger
Definition at line 36 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().
|
protected |
Definition at line 50 of file print_ledger.class.php.
|
protected |
internal variables for computing sum on PDF Listing
Definition at line 43 of file print_ledger.class.php.
|
protected |
$previous (array) see Acc_Ledger->previous_amount
$rap_htva (float) previous price w/o VAT
Definition at line 44 of file print_ledger.class.php.
|
protected |
$rap_nd (float) $no-deductible tax
Definition at line 54 of file print_ledger.class.php.
|
protected |
VAT when page starts.
Definition at line 65 of file print_ledger.class.php.
|
protected |
$rap_other_tav, amount to report for other tax than VAT
Definition at line 49 of file print_ledger.class.php.
|
protected |
$rap_priv (float) personal expense
Definition at line 48 of file print_ledger.class.php.
|
protected |
$rap_tva array(tva_id,amount)
Definition at line 47 of file print_ledger.class.php.
|
protected |
$rap_tva_np VAT not deductible
Definition at line 55 of file print_ledger.class.php.
|
protected |
$rap_tvac (float) previous amount
Definition at line 45 of file print_ledger.class.php.
|
protected |
Definition at line 64 of file print_ledger.class.php.
|
protected |
Definition at line 38 of file print_ledger.class.php.
|
protected |
$tp_htva (float) total page price w/o VAT
Definition at line 58 of file print_ledger.class.php.
|
protected |
$tp_nd (float) total page price w/o VAT
Definition at line 62 of file print_ledger.class.php.
|
protected |
$tp_priv (float) total page personal expense
Definition at line 61 of file print_ledger.class.php.
|
protected |
$tp_tva (float) total page VAT
Definition at line 59 of file print_ledger.class.php.
|
protected |
$tp_tva_np (float) total page not deductible
Definition at line 63 of file print_ledger.class.php.
|
protected |
$tp_tvac (float) total page full price All Tax Incl.
Definition at line 60 of file print_ledger.class.php.