diff --git a/site/controllers/transactions_controller.php b/site/controllers/transactions_controller.php index 576eb85..eca9677 100644 --- a/site/controllers/transactions_controller.php +++ b/site/controllers/transactions_controller.php @@ -493,19 +493,4 @@ class TransactionsController extends AppController { return; } - function foo() { - $all_tenders = $this->Transaction->LedgerEntry->Tender->find - ('all', array('link' => array('TenderType', - 'LedgerEntry' => - array('Transaction')), - 'conditions' => array(array('TenderType.auto_deposit' => true), - array('Tender.deposit_transaction_id' => null)), - )); - - foreach ($all_tenders AS $cur_tender) { - $tender_ids = array($cur_tender['Tender']['id']); - $ids = array('transaction_id' => $cur_tender['Transaction']['id']); - $this->Transaction->_autoDeposit($tender_ids, $ids); - } - } }