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:
@@ -97,27 +97,28 @@ echo $this->element('table',
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
echo '<div class="infobox">' . "\n";
|
echo '<div class="infobox">' . "\n";
|
||||||
$rows = array();
|
|
||||||
foreach ($ledgers AS $type => $ledger) {
|
foreach ($ledgers AS $type => $ledger) {
|
||||||
//pr($ledger);
|
//pr($ledger);
|
||||||
if (!$ledger['Account']['trackable'])
|
if (!$ledger['Account']['trackable'])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
$applied_caption = "Transfers applied to {$ledger['Account']['name']} entry";
|
$applied_caption = "Transfers applied";
|
||||||
$remaining_caption = "{$ledger['Account']['name']} entry unapplied amount";
|
$remaining_caption = "Unapplied amount";
|
||||||
|
|
||||||
|
$rows = array();
|
||||||
$rows[] = array($applied_caption,
|
$rows[] = array($applied_caption,
|
||||||
FormatHelper::currency($stats[$type]['amount_reconciled']));
|
FormatHelper::currency($stats[$type]['amount_reconciled']));
|
||||||
$rows[] = array($remaining_caption,
|
$rows[] = array($remaining_caption,
|
||||||
FormatHelper::currency($stats[$type]['amount_remaining']));
|
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>' . "\n";
|
||||||
|
|
||||||
echo ('<DIV CLASS="ledger-double-entry">' . "\n");
|
echo ('<DIV CLASS="ledger-double-entry">' . "\n");
|
||||||
|
|||||||
@@ -127,21 +127,26 @@ div.detail.supporting { clear : both;
|
|||||||
|
|
||||||
div.infobox { float: right;
|
div.infobox { float: right;
|
||||||
width: 39%;
|
width: 39%;
|
||||||
margin-top: 1.5em;
|
margin-top: 2.0em;
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.summary {
|
table.summary {
|
||||||
margin-left:auto;
|
margin-left:auto;
|
||||||
margin-right:0.5em;
|
margin-right:0.5em;
|
||||||
color: #993;
|
color: #339;
|
||||||
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
|
font-family:'Gill Sans','lucida grande',helvetica, arial, sans-serif;
|
||||||
font-size: 125%;
|
font-size: 125%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: 0.5em;
|
margin-bottom: 1.5em;
|
||||||
margin-bottom: 0.2em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.summary caption {
|
||||||
|
font-size: 100%;
|
||||||
|
text-align: right;
|
||||||
|
margin-right: 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
table.summary td {
|
table.summary td {
|
||||||
padding-left:0.5em;
|
padding-left:0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user