Removing, or at least phasing out the ledger name field. Account name is always needed and nearby, so ledger name is just confusing.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@740 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-23 01:08:30 +00:00
parent 1d921358a8
commit 2d3b962fe1
4 changed files with 5 additions and 6 deletions

View File

@@ -398,7 +398,7 @@ class TransactionsController extends AppController {
array('contain' => array('contain' =>
array(// Models array(// Models
'Account(id,name)', 'Account(id,name)',
'Ledger(id,name)', 'Ledger(id,sequence)',
'NsfTender(id,name)', 'NsfTender(id,name)',
), ),
'conditions' => array(array('Transaction.id' => $id), 'conditions' => array(array('Transaction.id' => $id),

View File

@@ -77,8 +77,7 @@ echo $this->element('ledger_entries', array
(// Grid configuration (// Grid configuration
'config' => array 'config' => array
('grid_div_id' => 'ledger-ledger-entry-list', ('grid_div_id' => 'ledger-ledger-entry-list',
'caption' => ("Current Ledger: " . 'caption' => "Current Ledger: #{$current_ledger['sequence']}",
"(". $current_ledger['name'] .")"),
'filter' => array('Ledger.id' => $current_ledger['id']), 'filter' => array('Ledger.id' => $current_ledger['id']),
'exclude' => array('Account', 'Amount', 'Cr/Dr', 'Balance', 'exclude' => array('Account', 'Amount', 'Cr/Dr', 'Balance',
empty($account['receipts']) ? 'Tender' : null), empty($account['receipts']) ? 'Tender' : null),

View File

@@ -33,7 +33,7 @@ $rows[] = array('Account', $html->link($account['name'],
array('controller' => 'accounts', array('controller' => 'accounts',
'action' => 'view', 'action' => 'view',
$account['id']))); $account['id'])));
$rows[] = array('Ledger', $html->link($ledger['name'], $rows[] = array('Ledger', $html->link('#' . $ledger['sequence'],
array('controller' => 'ledgers', array('controller' => 'ledgers',
'action' => 'view', 'action' => 'view',
$ledger['id']))); $ledger['id'])));

View File

@@ -25,7 +25,7 @@ $rows[] = array('Account', $html->link($account['name'],
array('controller' => 'accounts', array('controller' => 'accounts',
'action' => 'view', 'action' => 'view',
$account['id']))); $account['id'])));
$rows[] = array('Ledger', $html->link($ledger['name'], $rows[] = array('Ledger', $html->link('#' . $ledger['sequence'],
array('controller' => 'ledgers', array('controller' => 'ledgers',
'action' => 'view', 'action' => 'view',
$ledger['id']))); $ledger['id'])));