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
|
* Lease History
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ $cols['ID'] = array('index' => 'Transaction.id', 'formatter' =
|
|||||||
$cols['Type'] = array('index' => 'Transaction.type', 'formatter' => 'enum');
|
$cols['Type'] = array('index' => 'Transaction.type', 'formatter' => 'enum');
|
||||||
$cols['Customer'] = array('index' => 'Customer.name', 'formatter' => 'longname');
|
$cols['Customer'] = array('index' => 'Customer.name', 'formatter' => 'longname');
|
||||||
$cols['Timestamp'] = array('index' => 'Transaction.stamp', 'formatter' => 'date');
|
$cols['Timestamp'] = array('index' => 'Transaction.stamp', 'formatter' => 'date');
|
||||||
$cols['Amount'] = array('index' => 'Transaction.amount', 'formatter' => 'currency');
|
|
||||||
$cols['Entries'] = array('index' => 'entries', 'formatter' => 'number');
|
$cols['Entries'] = array('index' => 'entries', 'formatter' => 'number');
|
||||||
|
$cols['Amount'] = array('index' => 'Transaction.amount', 'formatter' => 'currency');
|
||||||
$cols['Comment'] = array('index' => 'Transaction.comment', 'formatter' => 'comment');
|
$cols['Comment'] = array('index' => 'Transaction.comment', 'formatter' => 'comment');
|
||||||
|
|
||||||
// Render the grid
|
// Render the grid
|
||||||
|
|||||||
@@ -95,16 +95,17 @@ if ($transaction['type'] === 'INVOICE' ||
|
|||||||
* Ledger Entries
|
* Ledger Entries
|
||||||
*/
|
*/
|
||||||
|
|
||||||
echo $this->element('ledger_entries', array
|
if (0) {
|
||||||
(// Grid configuration
|
echo $this->element('ledger_entries', array
|
||||||
'config' => array
|
(// Grid configuration
|
||||||
(
|
'config' => array
|
||||||
'caption' => 'Ledger Entries',
|
(
|
||||||
'filter' => array('Transaction.id' => $transaction['id'],
|
'caption' => 'Ledger Entries',
|
||||||
'Account.id !=' => $account['id']),
|
'filter' => array('Transaction.id' => $transaction['id'],
|
||||||
'exclude' => array('Transaction'),
|
'Account.id !=' => $account['id']),
|
||||||
)));
|
'exclude' => array('Transaction'),
|
||||||
|
)));
|
||||||
|
}
|
||||||
|
|
||||||
/* /\********************************************************************** */
|
/* /\********************************************************************** */
|
||||||
/* * Tenders Deposited */
|
/* * Tenders Deposited */
|
||||||
|
|||||||
Reference in New Issue
Block a user