Final tweaks (for now) to ledger entry view. Hopefully didn't break other summary boxes.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@301 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-11 00:45:17 +00:00
parent 0d3403032c
commit 30292bb4f5
2 changed files with 19 additions and 13 deletions

View File

@@ -97,27 +97,28 @@ echo $this->element('table',
*/
echo '<div class="infobox">' . "\n";
$rows = array();
foreach ($ledgers AS $type => $ledger) {
//pr($ledger);
if (!$ledger['Account']['trackable'])
continue;
$applied_caption = "Transfers applied to {$ledger['Account']['name']} entry";
$remaining_caption = "{$ledger['Account']['name']} entry unapplied amount";
$applied_caption = "Transfers applied";
$remaining_caption = "Unapplied amount";
$rows = array();
$rows[] = array($applied_caption,
FormatHelper::currency($stats[$type]['amount_reconciled']));
$rows[] = array($remaining_caption,
FormatHelper::currency($stats[$type]['amount_remaining']));
echo $this->element('table',
array('class' => 'item summary',
'caption' => "{$ledger['Account']['name']} Ledger Entry",
'rows' => $rows,
'column_class' => array('field', 'value'),
//'suppress_alternate_rows' => true,
));
}
echo $this->element('table',
array('class' => 'summary',
'rows' => $rows,
'column_class' => array('field', 'value'),
'suppress_alternate_rows' => true,
));
echo '</div>' . "\n";
echo ('<DIV CLASS="ledger-double-entry">' . "\n");

View File

@@ -127,21 +127,26 @@ div.detail.supporting { clear : both;
div.infobox { float: right;
width: 39%;
margin-top: 1.5em;
margin-top: 2.0em;
margin-right: 0.5em;
}
table.summary {
margin-left:auto;
margin-right:0.5em;
color: #993;
color: #339;
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
font-size: 125%;
text-align: right;
margin-top: 0.5em;
margin-bottom: 0.2em;
margin-bottom: 1.5em;
}
table.summary caption {
font-size: 100%;
text-align: right;
margin-right: 0.6em;
}
table.summary td {
padding-left:0.5em;
}