' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Customer Detail Main Section */ $rows = array(); $rows[] = array('Name', $customer['Customer']['name']); $rows[] = array('Since', FormatHelper::date($since, true)); if (!empty($until)) $rows[] = array('Until', FormatHelper::date($until, true)); $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('Charges:', FormatHelper::currency($stats['charges'])); //$rows[] = array('Payments:', FormatHelper::currency($stats['disbursements'])); $rows[] = array('Balance Owed:', 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'), 'sort_column' => 'Move-In', 'sort_order' => 'DESC', ))); /********************************************************************** * Customer Account History */ echo $this->element('statement_entries', array (// Grid configuration 'config' => array ('caption' => 'Customer Statement', 'filter' => array('Customer.id' => $customer['Customer']['id'], 'type !=' => 'VOID'), 'exclude' => array('Customer'), ))); /********************************************************************** * Receipt History */ echo $this->element('ledger_entries', array (// Grid configuration 'config' => array ('caption' => 'Receipts', 'filter' => array('Customer.id' => $customer['Customer']['id'], 'Transaction.type' => 'RECEIPT', 'Tender.id !=' => null, //'Account.id !=' => '-AR-' ), 'include' => array('Transaction'), 'exclude' => array('Entry', 'Account', 'Cr/Dr'), ))); /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";