' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Customer Detail Main Section */ $rows = array(); $rows[] = array('Name', $customer['Customer']['name']); $rows[] = array('Comment', $customer['Customer']['comment']); echo $this->element('table', array('class' => 'item customer detail', 'caption' => 'Customer Info', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Customer Info Box */ echo '
' . "\n"; $rows = array(); $rows[] = array('Security Deposit:', FormatHelper::currency($outstandingDeposit)); $rows[] = array('Balance:', FormatHelper::currency($outstandingBalance)); echo $this->element('table', array('class' => 'summary', 'rows' => $rows, 'column_class' => array('field', 'value'), 'suppress_alternate_rows' => true, )); echo '
' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\n"; /********************************************************************** * Contacts */ echo $this->element('contacts', array (// Grid configuration 'config' => array ('caption' => 'Customer Contacts', 'filter' => array('Customer.id' => $customer['Customer']['id']), 'include' => array('Type', 'Active'), ))); /********************************************************************** * Lease History */ echo $this->element('leases', array (// Grid configuration 'config' => array ('caption' => 'Lease History', 'filter' => array('Customer.id' => $customer['Customer']['id']), 'exclude' => array('Customer'), ))); /********************************************************************** * Customer Account History */ echo $this->element('statement_entries', array (// Grid configuration 'config' => array ('caption' => 'Account', 'filter' => array('Customer.id' => $customer['Customer']['id']), 'exclude' => array('Customer'), ))); /********************************************************************** * Customer Ledger History */ /* * REVISIT : 20090724 * It's not my intention to really include this, as I believe it * just will confuse folks. However, I've added it at the moment * to help me see the picture of what's happening. It may prove * useful with respect to identifying pre-payments, so after using * it for a while, maybe we can get a feeling for that. I suspect * it will be MUCH more useful just to add the pre-pay amount to * the info box, or provide a list of ledger entries that are JUST * pre-payments. We'll see... */ echo $this->element('ledger_entries', array (// Grid configuration 'config' => array ('caption' => 'Ledger Entries', 'filter' => array('Customer.id' => $customer['Customer']['id'], 'Account.id !=' => '-AR-'), 'exclude' => array('Customer'), ))); /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";