noalyss Version-9
|
Class for manipulating data to print the balance of account. More...
Public Member Functions | |
__construct ($p_cn) | |
= 0) More... | |
filter_cat ($p_array) | |
set the $this->jrn to the cat, filter the ledger thanks the type (key in the array) More... | |
summary_add ($p_array, $p_accounting, $p_deb, $p_cred) | |
Add the current amount (d /c) to the right item in the array, in order to compute a summary (1 to 5 , 6 charge and 7 profit ), the return value is an array. More... | |
summary_display ($p_array) | |
Display the summary of result in HTML. More... | |
summary_display_pdf ($p_array, $p_pdf) | |
Display the summary of result in PDF. More... | |
summary_init () | |
create an empty array for computing the summary More... | |
Data Fields | |
$db | |
$from_poste | |
$jrn | |
$row | |
$to_poste | |
$unsold | |
Class for manipulating data to print the balance of account.
Definition at line 27 of file acc_balance.class.php.
Acc_Balance::__construct | ( | $p_cn | ) |
= 0)
Definition at line 35 of file acc_balance.class.php.
References db, from_poste, jrn, and to_poste.
Acc_Balance::filter_cat | ( | $p_array | ) |
set the $this->jrn to the cat, filter the ledger thanks the type (key in the array)
array | of integer 0->Sale,1->Purchase,2->Financial,3->ODS |
Definition at line 304 of file acc_balance.class.php.
References $array, $e, $f, $p_array, Acc_Ledger\array_cat(), and jrn.
Acc_Balance::summary_add | ( | $p_array, | |
$p_accounting, | |||
$p_deb, | |||
$p_cred | |||
) |
Add the current amount (d /c) to the right item in the array, in order to compute a summary (1 to 5 , 6 charge and 7 profit ), the return value is an array.
array | $p_array | array with the result |
string | $p_accounting | accounting |
numeric | $p_deb | |
numeric | $p_cred |
Definition at line 347 of file acc_balance.class.php.
Acc_Balance::summary_display | ( | $p_array | ) |
Display the summary of result in HTML.
array | $p_array |
Definition at line 373 of file acc_balance.class.php.
References $diff, $p_array, $side, nbm(), and td().
Acc_Balance::summary_display_pdf | ( | $p_array, | |
$p_pdf | |||
) |
Display the summary of result in PDF.
array | $p_array | |
$p_pdf |
Definition at line 416 of file acc_balance.class.php.
References $diff, $p_array, $side, and nbm().
Acc_Balance::summary_init | ( | ) |
Acc_Balance::$db |
Definition at line 29 of file acc_balance.class.php.
Acc_Balance::$from_poste |
from_poste filter on the post
Definition at line 32 of file acc_balance.class.php.
Acc_Balance::$jrn |
< row for ledger idx of a table of ledger create by user->get_ledger
Definition at line 31 of file acc_balance.class.php.
Acc_Balance::$row |
< database connection
Definition at line 30 of file acc_balance.class.php.
Acc_Balance::$to_poste |
to_poste filter on the post
Definition at line 33 of file acc_balance.class.php.
Acc_Balance::$unsold |
Definition at line 34 of file acc_balance.class.php.