Got the ledger closings to work again. This seems to work ok, although I notice closing the ledger after deposit results in a balance forward entry of $0.00 . I'll work on it next
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@421 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -10,7 +10,7 @@ echo '<div class="ledger view">' . "\n";
|
||||
*/
|
||||
|
||||
$account = $ledger['Account'];
|
||||
//$close = $ledger['Close'];
|
||||
//$close = $ledger['CloseTransaction'];
|
||||
|
||||
if (isset($ledger['Ledger']))
|
||||
$ledger = $ledger['Ledger'];
|
||||
@@ -23,7 +23,7 @@ $rows[] = array('Account', $html->link($account['name'],
|
||||
'action' => 'view',
|
||||
$account['id'])));
|
||||
$rows[] = array('Sequence', $ledger['sequence']);
|
||||
$rows[] = array('Status', $ledger['close_id'] ? 'Closed' : 'Open');
|
||||
$rows[] = array('Status', $ledger['close_transaction_id'] ? 'Closed' : 'Open');
|
||||
$rows[] = array('Comment', $ledger['comment']);
|
||||
|
||||
echo $this->element('table',
|
||||
@@ -70,10 +70,8 @@ echo $this->element('ledger_entries', array
|
||||
'config' => array
|
||||
('caption' => "Ledger Entries",
|
||||
'filter' => array('ledger_id' => $ledger['id']),
|
||||
'exclude' => array('Ledger', 'Account', 'Amount', 'Cr/Dr', 'Debit', 'Credit'),
|
||||
'include' => array('Balance', 'Sub-Total'),
|
||||
/* 'exclude' => array('Ledger', 'Account', 'Amount', 'Cr/Dr', 'Balance'), */
|
||||
/* 'include' => array('Debit', 'Credit', 'Sub-Total'), */
|
||||
'exclude' => array('Ledger', 'Account', 'Amount', 'Cr/Dr', 'Balance'),
|
||||
'include' => array('Debit', 'Credit', 'Sub-Total'),
|
||||
)));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user