Moved deposit creation to the transactions controller. Added the ability to view prior deposit slips.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@418 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -8,8 +8,8 @@ echo '<P><BR>' . "\n";
|
||||
//pr(compact('depositTypes', 'depositAccounts'));
|
||||
|
||||
echo $form->create(null, array('id' => 'deposit-form',
|
||||
'url' => array(//'controller' => 'accounts',
|
||||
'action' => 'deposit_slip')));
|
||||
'url' => array('controller' => 'transactions',
|
||||
'action' => 'postDeposit')));
|
||||
|
||||
foreach ($depositTypes AS $type) {
|
||||
//$acct = $acct['Account'];
|
||||
@@ -25,6 +25,17 @@ foreach ($depositTypes AS $type) {
|
||||
" in " . Inflector::pluralize($type['name']) .
|
||||
" and will be depositing it all.")
|
||||
));
|
||||
|
||||
// REVISIT <AP>: 20090729
|
||||
// Would like to present an option for the user to close the ledger
|
||||
// associated with the form of tender, or to just leave it open.
|
||||
// For now, just leave it open
|
||||
echo "\n";
|
||||
echo $form->input("TenderType.{$type['id']}.close",
|
||||
array('type' => 'hidden',
|
||||
'value' => false,
|
||||
));
|
||||
|
||||
echo "\n";
|
||||
echo $form->input("TenderType.{$type['id']}.amount",
|
||||
array('type' => 'hidden',
|
||||
|
||||
Reference in New Issue
Block a user