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:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -95,6 +95,7 @@ if ($transaction['type'] === 'INVOICE' ||
|
||||
* Ledger Entries
|
||||
*/
|
||||
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user