Files
pmgr/site/views/ledgers/view.ctp

67 lines
1.9 KiB
PHP

<?php /* -*- mode:PHP -*- */ ?>
<div class="ledger view">
<?php
; // Editor alignment
/**********************************************************************
**********************************************************************
**********************************************************************
**********************************************************************
* Ledger Detail Main Section
*/
$rows = array(array('ID', $ledger['Ledger']['id']),
array('Name', $ledger['Ledger']['name']),
array('Account', $html->link($ledger['Account']['name'],
array('controller' => 'accounts',
'action' => 'view',
$ledger['Account']['id']))),
array('Status', $ledger['Ledger']['closed'] ? 'Closed' : 'Open'),
array('Comment', $ledger['Ledger']['comment']));
echo $this->element('table',
array('class' => 'item ledger detail',
'caption' => 'Ledger Detail',
'rows' => $rows,
'column_class' => array('field', 'value')));
/**********************************************************************
* Ledger Info Box
*/
?>
<DIV CLASS="infobox">
<DIV CLASS="summary balance">
Ledger Balance: <?php echo FormatHelper::currency($balance); ?>
</DIV>
</DIV>
<DIV CLASS="detail supporting">
<?php
; // Editor alignment
/**********************************************************************
**********************************************************************
**********************************************************************
**********************************************************************
* Supporting Elements Section
*/
/**********************************************************************
* Ledger
*/
echo $this->element('ledger_entries',
array('caption' => $ledger['Ledger']['name'],
'ledger_entries' => $ledger['LedgerEntry']));
/* End "detail supporting" DIV */ ?>
</DIV>
</div>