Eliminated (at least temporarily) the single ledger entry view, redirecting to the double entry view instead.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@601 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-17 06:30:01 +00:00
parent 4f6f478a9a
commit d3d5b54b39
2 changed files with 18 additions and 4 deletions

View File

@@ -202,6 +202,13 @@ class LedgerEntriesController extends AppController {
else
$entry['DoubleEntry'] = $entry['DebitDoubleEntry'];
// REVISIT <AP>: 20090816
// This page doesn't seem very useful, let's just keep it
// all to the double entry view.
$this->redirect(array('controller' => 'double_entries',
'action' => 'view',
$entry['DoubleEntry']['id']));
// Prepare to render.
$title = "Ledger Entry #{$entry['LedgerEntry']['id']}";
$this->set(compact('entry', 'title'));