Added initial support for ledger entry reconciliation (e.g. matching payments to charges).
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@152 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -66,6 +66,14 @@ echo $this->element('table',
|
||||
|
||||
echo '<div class="infobox">' . "\n";
|
||||
$rows = array();
|
||||
if ($debit_ledger['Account']['trackable']) {
|
||||
$rows[] = array('Debit Amount Reconciled:', FormatHelper::currency($stats['debit_amount_reconciled']));
|
||||
$rows[] = array('Debit Amount Remaining:', FormatHelper::currency($stats['debit_amount_remaining']));
|
||||
}
|
||||
if ($credit_ledger['Account']['trackable']) {
|
||||
$rows[] = array('Credit Amount Reconciled:', FormatHelper::currency($stats['credit_amount_reconciled']));
|
||||
$rows[] = array('Credit Amount Remaining:', FormatHelper::currency($stats['credit_amount_remaining']));
|
||||
}
|
||||
echo $this->element('table',
|
||||
array('class' => 'summary',
|
||||
'rows' => $rows,
|
||||
@@ -85,6 +93,29 @@ echo '</div>' . "\n";
|
||||
echo '<div CLASS="detail supporting">' . "\n";
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Reconciliation Ledger Entries
|
||||
*/
|
||||
|
||||
echo $this->element('ledger_entries',
|
||||
array('caption' => "Debit Applications",
|
||||
'grid_id' => 'debit_reconciliation_ledger_entries',
|
||||
'ledger_id' => $debit_ledger['id'],
|
||||
'account_type' => $debit_ledger['Account']['type'],
|
||||
'reconcile' => 'Credit', // Looking for credits to match this debit
|
||||
'reconcile_id' => $entry['id'],
|
||||
));
|
||||
|
||||
echo $this->element('ledger_entries',
|
||||
array('caption' => "Credit Applications",
|
||||
'grid_id' => 'credit_reconciliation_ledger_entries',
|
||||
'ledger_id' => $credit_ledger['id'],
|
||||
'account_type' => $credit_ledger['Account']['type'],
|
||||
'reconcile' => 'Debit', // Looking for debits to match this credit
|
||||
'reconcile_id' => $entry['id'],
|
||||
));
|
||||
|
||||
|
||||
/* End "detail supporting" div */
|
||||
echo '</div>' . "\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user