where('date', $mdate)
->order_by_desc('id')
->find_many();
$dr = ORM::for_table('sys_transactions')
->where('date', $mdate)
->sum('dr');
if ($dr == '') {
$dr = '0.00';
}
$cr = ORM::for_table('sys_transactions')
->where('date', $mdate)
->sum('cr');
if ($cr == '') {
$cr = '0.00';
}
?>
:
:
:
|
|
|
|
|
|
|
|
|
|
|
|
' .
$ds['account'] .
' |
' .
ib_lan_get_line($ds['type']) .
' |
' .
$cat .
' |
' .
$config['currency_code'] .
' ' .
number_format(
$ds['amount'],
2,
$config['dec_point'],
$config['thousands_sep']
) .
' |
' .
$ds['payer'] .
' |
' .
$ds['payee'] .
' |
' .
$ds['method'] .
' |
' .
$ds['ref'] .
' |
' .
$ds['description'] .
' |
' .
$config['currency_code'] .
' ' .
number_format(
$ds['dr'],
2,
$config['dec_point'],
$config['thousands_sep']
) .
' |
' .
$config['currency_code'] .
' ' .
number_format(
$ds['cr'],
2,
$config['dec_point'],
$config['thousands_sep']
) .
' |
' .
$config['currency_code'] .
' ' .
number_format(
$ds['bal'],
2,
$config['dec_point'],
$config['thousands_sep']
) .
' |
';
} ?>