Changed security deposits to be returned regardless of where second half of the ledger entry is

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@297 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-10 10:49:19 +00:00
parent 43382f4ab1
commit 6c89536073
2 changed files with 2 additions and 4 deletions

View File

@@ -85,9 +85,8 @@ class Customer extends AppModel {
/* )); */
$A = new Account();
$entries = $A->findLedgerEntriesRelatedToAccount
$entries = $A->findLedgerEntries
($A->securityDepositAccountID(),
array($A->invoiceAccountID(), $A->receiptAccountID()),
true, array('LedgerEntry.customer_id' => $id), $link);
/* pr(array('function' => 'Customer::findSecurityDeposits', */

View File

@@ -87,9 +87,8 @@ class Lease extends AppModel {
/* )); */
$A = new Account();
$entries = $A->findLedgerEntriesRelatedToAccount
$entries = $A->findLedgerEntries
($A->securityDepositAccountID(),
array($A->invoiceAccountID(), $A->receiptAccountID()),
true, array('LedgerEntry.lease_id' => $id), $link);
/* pr(array('function' => 'Lease::findSecurityDeposits', */