|
noalyss
Version-6.7.2
|
Class for manipulating data to print the balance of account. More...
Public Member Functions | |
| Acc_Balance ($p_cn) | |
| = 0) | |
| filter_cat ($p_array) | |
| set the $this->jrn to the cat | |
Static Public Member Functions | |
| static | test_me () |
Data Fields | |
| $db | |
| $from_poste | |
| $jrn | |
| $row | |
| $to_poste | |
| $unsold | |
Class for manipulating data to print the balance of account.
Definition at line 28 of file class_acc_balance.php.
| Acc_Balance::Acc_Balance | ( | $ | p_cn | ) |
= 0)
Definition at line 36 of file class_acc_balance.php.
References $from_poste, $to_poste, $unsold, db, and jrn.
Referenced by test_me().
{
$this->db=$p_cn;
$this->jrn=null;
$from_poste="";
$to_poste="";
$unsold=false;
}
| Acc_Balance::filter_cat | ( | $ | p_array | ) |
set the $this->jrn to the cat
Definition at line 252 of file class_acc_balance.php.
References $array, $bal, $e, $f, $jrn, $p_array, Acc_Ledger\array_cat(), and jrn.
{
if ( empty($p_array) )
{
$bal->jn=null;
return;
}
/* get the list of jrn of the cat. */
$array=Acc_Ledger::array_cat();
$jrn=array();
for ($e=0;$e<count($array);$e++)
{
if ( isset($p_array[$e]))
{
$t_a=$this->db->get_array('select jrn_def_id from jrn_def where jrn_def_type=$1',array($array[$e]['cat']));
for ( $f=0;$f < count($t_a);$f++) $this->jrn[]=$t_a[$f]['jrn_def_id'];
}
}
}
| static Acc_Balance::test_me | ( | ) | [static] |
Definition at line 273 of file class_acc_balance.php.
References $cn, $g_user, Acc_Balance(), and id.
| Acc_Balance::$db |
Definition at line 30 of file class_acc_balance.php.
| Acc_Balance::$from_poste |
from_poste filter on the post
Definition at line 33 of file class_acc_balance.php.
Referenced by Acc_Balance().
| Acc_Balance::$jrn |
< row for ledger idx of a table of ledger create by user->get_ledger
Definition at line 32 of file class_acc_balance.php.
Referenced by filter_cat().
| Acc_Balance::$row |
< database connection
Definition at line 31 of file class_acc_balance.php.
| Acc_Balance::$to_poste |
to_poste filter on the post
Definition at line 34 of file class_acc_balance.php.
Referenced by Acc_Balance().
| Acc_Balance::$unsold |
Definition at line 35 of file class_acc_balance.php.
Referenced by Acc_Balance().