git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@85 97e9348a-65ac-dc4b-aefc-98561f571b83
78 lines
2.7 KiB
PHP
78 lines
2.7 KiB
PHP
<?php /* -*- mode:PHP -*- */ ?>
|
|
|
|
<div class="ledger-entry view">
|
|
|
|
<?php
|
|
; // Editor alignment
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* LedgerEntry Detail Main Section
|
|
*/
|
|
|
|
$rows = array(array('ID', $entry['LedgerEntry']['id']),
|
|
array('Transaction', $html->link('#'.$entry['Transaction']['id'],
|
|
array('controller' => 'transactions',
|
|
'action' => 'view',
|
|
$entry['Transaction']['id']))),
|
|
array('Timestamp', FormatHelper::datetime($entry['Transaction']['stamp'])),
|
|
array('Source', $entry['MonetarySource']['id']),
|
|
array('Amount', FormatHelper::currency($entry['LedgerEntry']['amount'])),
|
|
array('Debit', ($html->link($entry['DebitLedger']['Account']['name'],
|
|
array('controller' => 'accounts',
|
|
'action' => 'view',
|
|
$entry['DebitLedger']['Account']['id']))
|
|
. ' ('
|
|
. $html->link('#' . $entry['DebitLedger']['Account']['id']
|
|
. '-' . $entry['DebitLedger']['sequence'],
|
|
array('controller' => 'ledgers',
|
|
'action' => 'view',
|
|
$entry['DebitLedger']['id']))
|
|
. ')')),
|
|
array('Credit', ($html->link($entry['CreditLedger']['Account']['name'],
|
|
array('controller' => 'accounts',
|
|
'action' => 'view',
|
|
$entry['CreditLedger']['Account']['id']))
|
|
. ' ('
|
|
. $html->link('#' . $entry['CreditLedger']['Account']['id']
|
|
. '-' . $entry['CreditLedger']['sequence'],
|
|
array('controller' => 'ledgers',
|
|
'action' => 'view',
|
|
$entry['CreditLedger']['id']))
|
|
. ')')),
|
|
array('Comment', $entry['LedgerEntry']['comment']));
|
|
|
|
echo $this->element('table',
|
|
array('class' => 'item ledger-entry detail',
|
|
'caption' => 'Ledger Entry Detail',
|
|
'rows' => $rows,
|
|
'column_class' => array('field', 'value')));
|
|
|
|
|
|
/**********************************************************************
|
|
* LedgerEntry Info Box
|
|
*/
|
|
|
|
?>
|
|
<DIV CLASS="infobox">
|
|
</DIV>
|
|
|
|
<DIV CLASS="detail supporting">
|
|
<?php
|
|
; // Editor alignment
|
|
|
|
/**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
**********************************************************************
|
|
* Supporting Elements Section
|
|
*/
|
|
|
|
|
|
/* End "detail supporting" DIV */ ?>
|
|
</DIV>
|
|
|
|
</div>
|