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)) {