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:
@@ -85,9 +85,8 @@ class Customer extends AppModel {
|
|||||||
/* )); */
|
/* )); */
|
||||||
|
|
||||||
$A = new Account();
|
$A = new Account();
|
||||||
$entries = $A->findLedgerEntriesRelatedToAccount
|
$entries = $A->findLedgerEntries
|
||||||
($A->securityDepositAccountID(),
|
($A->securityDepositAccountID(),
|
||||||
array($A->invoiceAccountID(), $A->receiptAccountID()),
|
|
||||||
true, array('LedgerEntry.customer_id' => $id), $link);
|
true, array('LedgerEntry.customer_id' => $id), $link);
|
||||||
|
|
||||||
/* pr(array('function' => 'Customer::findSecurityDeposits', */
|
/* pr(array('function' => 'Customer::findSecurityDeposits', */
|
||||||
|
|||||||
@@ -87,9 +87,8 @@ class Lease extends AppModel {
|
|||||||
/* )); */
|
/* )); */
|
||||||
|
|
||||||
$A = new Account();
|
$A = new Account();
|
||||||
$entries = $A->findLedgerEntriesRelatedToAccount
|
$entries = $A->findLedgerEntries
|
||||||
($A->securityDepositAccountID(),
|
($A->securityDepositAccountID(),
|
||||||
array($A->invoiceAccountID(), $A->receiptAccountID()),
|
|
||||||
true, array('LedgerEntry.lease_id' => $id), $link);
|
true, array('LedgerEntry.lease_id' => $id), $link);
|
||||||
|
|
||||||
/* pr(array('function' => 'Lease::findSecurityDeposits', */
|
/* pr(array('function' => 'Lease::findSecurityDeposits', */
|
||||||
|
|||||||
Reference in New Issue
Block a user