Added income / expense reports that produce results suitable for entry into quickbooks as per the current paradigm

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1009 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2011-03-30 16:57:28 +00:00
parent c4f6f76edb
commit 3d1c4d2492
3 changed files with 71 additions and 20 deletions

View File

@@ -10,11 +10,11 @@ echo '<div class="statement_entry overview">' . "\n";
*/
$rows = array();
$rows[] = array("$months Month Charges", FormatHelper::currency($overview['charges']));
$rows[] = array("$months Month Total", FormatHelper::currency($overview['amount']));
echo $this->element('table',
array('class' => 'item statement_entry detail',
'caption' => 'Monthly Charges',
'caption' => $reptype,
'rows' => $rows,
'column_class' => array('field', 'value')));
@@ -38,11 +38,11 @@ foreach ($overview['months'] AS $month) {
$odd = 1;
foreach ($month['subs'] AS $sub) {
$row_class[] = array('subitem', $odd ? 'oddrow' : 'evenrow');
$rows[] = array($sub['name'], FormatHelper::currency($sub['charges']));
$rows[] = array($sub['name'], FormatHelper::currency($sub['amount']));
$odd = !$odd;
}
$row_class[] = 'grand';
$rows[] = array('Total for '.$month['name'], FormatHelper::currency($month['charges']));
$rows[] = array('Total for '.$month['name'], FormatHelper::currency($month['amount']));
}
echo $this->element('table',