From eee3d45c5d39c1fa47a4670ce088dcfab90e2503 Mon Sep 17 00:00:00 2001 From: abijah Date: Mon, 22 Jun 2009 23:40:53 +0000 Subject: [PATCH] Prevent grouping of ledger entries by transaction, at least for now. git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@178 97e9348a-65ac-dc4b-aefc-98561f571b83 --- views/elements/ledger_entries.ctp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/views/elements/ledger_entries.ctp b/views/elements/ledger_entries.ctp index 12fb532..3755a78 100644 --- a/views/elements/ledger_entries.ctp +++ b/views/elements/ledger_entries.ctp @@ -2,10 +2,16 @@ // Define the table columns $cols = array(); +if (0) { if (isset($notxgroup)) $cols['Entry'] = array('index' => 'LedgerEntry.id', 'formatter' => 'id'); else $cols['Transaction'] = array('index' => 'Transaction.id', 'formatter' => 'id'); +} else { + $notxgroup = true; + $cols['Transaction'] = array('index' => 'Transaction.id', 'formatter' => 'id'); + $cols['Entry'] = array('index' => 'LedgerEntry.id', 'formatter' => 'id'); +} $cols['Date'] = array('index' => 'Transaction.stamp', 'formatter' => 'date'); if (isset($account_ftype) || isset($ledger_id)) {