Cleaned up some of the old code concerning the deposit action. It's not done, as I'll next be experimenting with having the tenders controller handle deposits.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@410 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -209,15 +209,16 @@ class AccountsController extends AppController {
|
||||
}
|
||||
|
||||
// Prepare a close page...
|
||||
$tillable_account = $this->Account->paymentAccounts();
|
||||
$depositable_account = $this->Account->depositAccounts();
|
||||
$payment_accounts = $this->Account->paymentAccounts();
|
||||
$deposit_accounts = $this->Account->depositAccounts();
|
||||
|
||||
foreach ($tillable_account AS &$acct) {
|
||||
$acct['Account']['stats'] = $this->Account->stats($acct['Account']['id']);
|
||||
}
|
||||
foreach ($payment_accounts AS $acct_id => &$acct)
|
||||
$acct = array('id' => $acct_id,
|
||||
'name' => $acct,
|
||||
'stats' => $this->Account->stats($acct_id));
|
||||
|
||||
$title = 'Account: Prepare Deposit';
|
||||
$this->set(compact('title', 'tillable_account', 'depositable_account'));
|
||||
$this->set(compact('title', 'payment_accounts', 'deposit_accounts'));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user