Modified lease and customer views to have the statement & ledger entries sorted in descending date order by default. May not prefer this in the end, but we'll give it a go for a while.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@485 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-04 22:12:32 +00:00
parent 11d5deac85
commit 9e20473b3b
2 changed files with 6 additions and 0 deletions

View File

@@ -84,6 +84,8 @@ echo $this->element('statement_entries', array
'filter' => array('Customer.id' => $customer['Customer']['id'],
'type !=' => 'VOID'),
'exclude' => array('Customer'),
'sort_column' => 'Date',
'sort_order' => 'DESC',
)));
@@ -109,6 +111,8 @@ echo $this->element('ledger_entries', array
'filter' => array('Customer.id' => $customer['Customer']['id'],
'Account.id !=' => '-AR-'),
'exclude' => array('Customer'),
'sort_column' => 'Date',
'sort_order' => 'DESC',
)));

View File

@@ -88,6 +88,8 @@ echo $this->element('statement_entries', array
'filter' => array('Lease.id' => $lease['id']),
'include' => array('Through'),
'exclude' => array('Customer', 'Lease', 'Unit'),
'sort_column' => 'Date',
'sort_order' => 'DESC',
)));