' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Ledger Entry Detail Main Section */ $transaction = $entry['Transaction']; $ledger = $entry['Ledger']; $account = $ledger['Account']; $tender = $entry['Tender']; $matching = $entry['MatchingEntry']; $double = $entry['DoubleEntry']; $entry = $entry['LedgerEntry']; $rows = array(); $rows[] = array('ID', $entry['id']); $rows[] = array('Transaction', $html->link('#'.$transaction['id'], array('controller' => 'transactions', 'action' => 'view', $transaction['id']))); $rows[] = array('Timestamp', FormatHelper::datetime($transaction['stamp'])); $rows[] = array('Amount', FormatHelper::currency($entry['amount'])); $rows[] = array('Tender', $html->link($tender['name'], array('controller' => 'tenders', 'action' => 'view', $tender['id']))); $rows[] = array('Account', $html->link($account['name'], array('controller' => 'accounts', 'action' => 'view', $account['id']))); $rows[] = array('Ledger', $html->link('#' . $ledger['sequence'], array('controller' => 'ledgers', 'action' => 'view', $ledger['id']))); $rows[] = array('Cr/Dr', ($entry['crdr'] . ' (Matching ' . $matching['crdr'] . ': ' . $html->link('#'.$matching['id'], array('controller' => 'ledger_entries', 'action' => 'view', $matching['id'])) . ')')); $rows[] = array('Double Entry', $html->link('#'.$double['id'], array('controller' => 'double_entries', 'action' => 'view', $double['id']))); $rows[] = array('Comment', $entry['comment']); echo $this->element('table', array('class' => 'item entry detail', 'caption' => 'Ledger Entry Detail', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Entry Info Box */ echo '
' . "\n"; echo '
' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\n"; /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";