A final attempt to reconcile the cash in the bank account. It just wasn't designed this way, so I'll strip it out on the next checkin.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@333 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-15 01:33:06 +00:00
parent 6210838b22
commit d1075a2ea2

View File

@@ -155,12 +155,12 @@ class MonetarySource extends AppModel {
'lease_id' => $e3['lease_id'],
'customer_id' => $e3['customer_id'],
'comment' => "NSF of Monetary Source #{$id}",
/* ), */
/* array('credit' => array */
/* (array('LedgerEntry' => array */
/* ('id' => $e4['id'], */
/* 'amount' => $amount, */
/* ))), */
),
array('debit' => array
(array('LedgerEntry' => array
('id' => $e4['id'],
'amount' => $amount,
))),
));
if ($e5_ids['error'])
@@ -187,15 +187,15 @@ class MonetarySource extends AppModel {
'customer_id' => $e1['customer_id'],
'comment' => "NSF back to A/R from Monetary Source #{$id}",
),
array('debit' =>
array(array('LedgerEntry' =>
array('id' => $e5_ids['id'],
'amount' => $amount))),
array('debit' => array
(array('LedgerEntry' =>
array('id' => $e5_ids['id'],
'amount' => $amount))),
'credit' =>
array(array('LedgerEntry' =>
array('id' => $e1['id'],
'amount' => $amount))),
'credit' => array
(array('LedgerEntry' =>
array('id' => $e1['id'],
'amount' => $amount))),
)
);