Added some minor view tweaks

git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1018 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2012-11-17 18:18:36 +00:00
parent fc9226594c
commit 99a98cbc7d
3 changed files with 33 additions and 11 deletions

View File

@@ -105,6 +105,27 @@ echo $this->element('ledger_entries', array
)));
/**********************************************************************
* Invoice History
*/
/* NOT COMPLETED
echo $this->element('transactions', array
(// Grid configuration
'config' => array
('caption' => 'Invoices',
'limit' => 5,
'filter' => array('Customer.id' => $customer['Customer']['id'],
'Transaction.type' => 'INVOICE',
),
//'include' => array(),
'exclude' => array('Type'),
'remap' => array('ID' => 'Invoice',
//'Timestamp' => 'Date',
'Entries' => 'Charges'),
)));
NOT COMPLETED */
/**********************************************************************
* Lease History
*/

View File

@@ -11,8 +11,8 @@ $cols['ID'] = array('index' => 'Transaction.id', 'formatter' =
$cols['Type'] = array('index' => 'Transaction.type', 'formatter' => 'enum');
$cols['Customer'] = array('index' => 'Customer.name', 'formatter' => 'longname');
$cols['Timestamp'] = array('index' => 'Transaction.stamp', 'formatter' => 'date');
$cols['Amount'] = array('index' => 'Transaction.amount', 'formatter' => 'currency');
$cols['Entries'] = array('index' => 'entries', 'formatter' => 'number');
$cols['Amount'] = array('index' => 'Transaction.amount', 'formatter' => 'currency');
$cols['Comment'] = array('index' => 'Transaction.comment', 'formatter' => 'comment');
// Render the grid

View File

@@ -95,7 +95,8 @@ if ($transaction['type'] === 'INVOICE' ||
* Ledger Entries
*/
echo $this->element('ledger_entries', array
if (0) {
echo $this->element('ledger_entries', array
(// Grid configuration
'config' => array
(
@@ -104,7 +105,7 @@ echo $this->element('ledger_entries', array
'Account.id !=' => $account['id']),
'exclude' => array('Transaction'),
)));
}
/* /\********************************************************************** */
/* * Tenders Deposited */