From ad1702357041717b72ee1c5cd96c918aa1085583 Mon Sep 17 00:00:00 2001 From: abijah Date: Fri, 10 Jul 2009 10:49:19 +0000 Subject: [PATCH] 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@297 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/models/customer.php | 3 +-- site/models/lease.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/site/models/customer.php b/site/models/customer.php index e399b0d..a4f7786 100644 --- a/site/models/customer.php +++ b/site/models/customer.php @@ -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', */ diff --git a/site/models/lease.php b/site/models/lease.php index f1fc24a..7fd9750 100644 --- a/site/models/lease.php +++ b/site/models/lease.php @@ -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', */