Changed the default grid size for ledger_entries

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@770 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-25 01:06:57 +00:00
parent 8663c25806
commit 241028603b
3 changed files with 3 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ echo $this->element('ledger_entries', array
'exclude' => array('Account', 'Amount', 'Cr/Dr', 'Balance', 'exclude' => array('Account', 'Amount', 'Cr/Dr', 'Balance',
empty($account['receipts']) ? 'Tender' : null), empty($account['receipts']) ? 'Tender' : null),
'include' => array('Debit', 'Credit', 'Sub-Total'), 'include' => array('Debit', 'Credit', 'Sub-Total'),
'limit' => 50,
))); )));
@@ -100,6 +101,7 @@ echo $this->element('ledger_entries', array
'exclude' => array('Account', 'Amount', 'Cr/Dr', 'Balance', 'exclude' => array('Account', 'Amount', 'Cr/Dr', 'Balance',
empty($account['receipts']) ? 'Tender' : null), empty($account['receipts']) ? 'Tender' : null),
'include' => array('Debit', 'Credit', 'Sub-Total'), 'include' => array('Debit', 'Credit', 'Sub-Total'),
'limit' => 50,
))); )));

View File

@@ -20,7 +20,6 @@ $cols['Sub-Total'] = array('index' => 'subtotal-balance', 'formatter' =>
// Render the grid // Render the grid
$grid $grid
->limit(50)
->columns($cols) ->columns($cols)
->sortField('Date', 'DESC') ->sortField('Date', 'DESC')
->defaultFields(array('Entry', 'Date', 'Amount')) ->defaultFields(array('Entry', 'Date', 'Amount'))

View File

@@ -72,6 +72,7 @@ echo $this->element('ledger_entries', array
'Amount', 'Cr/Dr', 'Balance', 'Amount', 'Cr/Dr', 'Balance',
empty($account['receipts']) ? 'Tender' : null), empty($account['receipts']) ? 'Tender' : null),
'include' => array('Debit', 'Credit', 'Sub-Total'), 'include' => array('Debit', 'Credit', 'Sub-Total'),
'limit' => 50,
))); )));