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', */