' . "\n";
* Lease Account History
*/
-echo $this->element('ledger_entries',
- array('caption' => 'Account',
- 'lease_id' => $lease['id'],
- 'ar_account' => true,
- ));
+echo $this->element('ledger_entries', array
+ (// Element configuration
+ 'lease_id' => $lease['id'],
+ 'ar_account' => true,
+
+ // Grid configuration
+ 'config' => array
+ ('caption' => 'Account',
+ ),
+ ));
/* End "detail supporting" div */
diff --git a/views/ledger_entries/view.ctp b/views/ledger_entries/view.ctp
index 9a3c16e..5e437b6 100644
--- a/views/ledger_entries/view.ctp
+++ b/views/ledger_entries/view.ctp
@@ -118,21 +118,31 @@ echo '
' . "\n";
*/
if ($debit_ledger['Account']['trackable']) {
- echo $this->element('ledger_entries',
- array('caption' => "Applied to " . $debit_ledger['Account']['name'],
- 'grid_div_id' => 'debit_reconciliation_ledger_entries',
- 'account_ftype' => 'debit',
- 'reconcile_id' => $entry['id'],
- ));
+ echo $this->element('ledger_entries', array
+ (// Element configuration
+ 'account_ftype' => 'debit',
+ 'reconcile_id' => $entry['id'],
+
+ // Grid configuration
+ 'config' => array
+ ('caption' => "Applied to " . $debit_ledger['Account']['name'],
+ 'grid_div_id' => 'debit_reconciliation_ledger_entries',
+ ),
+ ));
}
if ($credit_ledger['Account']['trackable']) {
- echo $this->element('ledger_entries',
- array('caption' => "Applied to " . $credit_ledger['Account']['name'],
- 'grid_div_id' => 'credit_reconciliation_ledger_entries',
- 'account_ftype' => 'credit',
- 'reconcile_id' => $entry['id'],
- ));
+ echo $this->element('ledger_entries', array
+ (// Element configuration
+ 'account_ftype' => 'credit',
+ 'reconcile_id' => $entry['id'],
+
+ // Grid configuration
+ 'config' => array
+ ('caption' => "Applied to " . $credit_ledger['Account']['name'],
+ 'grid_div_id' => 'credit_reconciliation_ledger_entries',
+ ),
+ ));
}
diff --git a/views/ledgers/view.ctp b/views/ledgers/view.ctp
index d12ee51..de10d73 100644
--- a/views/ledgers/view.ctp
+++ b/views/ledgers/view.ctp
@@ -63,11 +63,17 @@ echo '
' . "\n";
* Ledger Entries
*/
-echo $this->element('ledger_entries',
- array('caption' => "Ledger Entries",
- 'ledger_id' => $ledger['id'],
- 'account_type' => $account['type'],
- ));
+echo $this->element('ledger_entries', array
+ (// Element configuration
+ 'ledger_id' => $ledger['id'],
+ 'account_type' => $account['type'],
+
+ // Grid configuration
+ 'config' => array
+ ('caption' => "Ledger Entries",
+ ),
+ ));
+
/* End "detail supporting" div */
echo '
' . "\n";
diff --git a/views/transactions/view.ctp b/views/transactions/view.ctp
index 6b3a43d..081138d 100644
--- a/views/transactions/view.ctp
+++ b/views/transactions/view.ctp
@@ -51,12 +51,17 @@ echo '
' . "\n";
* Entries
*/
-echo $this->element('ledger_entries',
- array('caption' => 'Entries in Transaction',
- //'ledger_entries' => $transaction['LedgerEntry'],
- 'transaction_id' => $transaction['Transaction']['id'],
- 'notxgroup' => true,
- ));
+echo $this->element('ledger_entries', array
+ (// Element configuration
+ 'transaction_id' => $transaction['Transaction']['id'],
+ 'notxgroup' => true,
+
+ // Grid configuration
+ 'config' => array
+ (
+ 'caption' => 'Entries in Transaction',
+ ),
+ ));
/* End "detail supporting" div */
diff --git a/views/units/view.ctp b/views/units/view.ctp
index 83f4d1e..2a055ab 100644
--- a/views/units/view.ctp
+++ b/views/units/view.ctp
@@ -71,15 +71,22 @@ echo $this->element('leases', array
/**********************************************************************
* Current Customer Lease Account History
*/
+
if (isset($current_lease['id'])) {
- echo $this->element('ledger_entries',
- array('caption' =>
- ('Current Lease Account ('
- . $current_lease['Customer']['name']
- . ')'),
- 'ar_account' => true,
- 'lease_id' => $current_lease['id'],
- ));
+ echo $this->element('ledger_entries', array
+ (// Element configuration
+ 'ar_account' => true,
+ 'lease_id' => $current_lease['id'],
+
+ // Grid configuration
+ 'config' => array
+ (
+ 'caption' =>
+ ('Current Lease Account ('
+ . $current_lease['Customer']['name']
+ . ')'),
+ ),
+ ));
}