Moved contacts onto jqgrid. Added 'name' and 'longname' formats.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@120 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-14 20:24:36 +00:00
parent d5dbabd94a
commit 404323c6c1
8 changed files with 54 additions and 102 deletions

View File

@@ -78,6 +78,17 @@ class CustomersController extends AppController {
return $conditions;
}
function jqGridDataOrder(&$params, $index, $direction) {
$order = parent::jqGridDataOrder($params, $index, $direction);
if ($index === 'PrimaryContact.last_name') {
$order[] = 'PrimaryContact.first_name ' . $direction;
}
if ($index === 'PrimaryContact.first_name') {
$order[] = 'PrimaryContact.last_name ' . $direction;
}
return $order;
}
function jqGridDataRecordCount(&$params, $model, $query) {
// We don't have a good way to use the query to obtain