Eliminated use of ledger name, since a ledger is just one of the books that make up an account. There is no reason to identify a ledger by a name other than the account name.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@142 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-16 02:18:05 +00:00
parent 388dbc0540
commit 8b067bf676

View File

@@ -15,11 +15,11 @@ if (isset($ledger['Ledger']))
$ledger = $ledger['Ledger'];
$rows = array(array('ID', $ledger['id']),
array('Name', $ledger['name']),
array('Account', $html->link($account['name'],
array('controller' => 'accounts',
'action' => 'view',
$account['id']))),
array('Sequence', $ledger['sequence']),
array('Status', $ledger['closed'] ? 'Closed' : 'Open'),
array('Comment', $ledger['comment']));
@@ -63,7 +63,7 @@ echo '<div CLASS="detail supporting">' . "\n";
*/
echo $this->element('ledger_entries',
array('caption' => $ledger['name'],
array('caption' => "Ledger Entries",
'ledger_id' => $ledger['id'],
'account_type' => $account['type'],
));