' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * LedgerEntry Detail Main Section */ $transaction = $entry['Transaction']; $debit_ledger = $entry['DebitLedger']; $credit_ledger = $entry['CreditLedger']; $source = $entry['MonetarySource']; $customer = $entry['Customer']; $lease = $entry['Lease']; $entry = $entry['LedgerEntry']; $rows = array(array('ID', $entry['id']), array('Transaction', $html->link('#'.$transaction['id'], array('controller' => 'transactions', 'action' => 'view', $transaction['id']))), array('Timestamp', FormatHelper::datetime($transaction['stamp'])), array('Customer', (isset($customer['name']) ? $html->link($customer['name'], array('controller' => 'customers', 'action' => 'view', $customer['id'])) : null)), array('Lease', (isset($lease['id']) ? $html->link('#'.$lease['id'], array('controller' => 'leases', 'action' => 'view', $lease['id'])) : null)), array('Monetary Source', (isset($source['name']) ? $html->link($source['name'], array('controller' => 'monetary_sources', 'action' => 'view', $source['id'])) : null)), array('Amount', FormatHelper::currency($entry['amount'])), array('Debit', ($html->link($debit_ledger['Account']['name'], array('controller' => 'accounts', 'action' => 'view', $debit_ledger['Account']['id'])) . ' (' . $html->link('#' . $debit_ledger['Account']['id'] . '-' . $debit_ledger['sequence'], array('controller' => 'ledgers', 'action' => 'view', $debit_ledger['id'])) . ')')), array('Credit', ($html->link($credit_ledger['Account']['name'], array('controller' => 'accounts', 'action' => 'view', $credit_ledger['Account']['id'])) . ' (' . $html->link('#' . $credit_ledger['Account']['id'] . '-' . $credit_ledger['sequence'], array('controller' => 'ledgers', 'action' => 'view', $credit_ledger['id'])) . ')')), array('Comment', $entry['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 */ echo '