mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-20 16:40:10 +00:00
Lots of cleanup and formatting.
This commit is contained in:
@@ -140,18 +140,19 @@ class TransactionController extends BaseController
|
||||
$repository = App::make('FireflyIII\Database\TransactionJournal');
|
||||
$repository->destroy($transactionJournal);
|
||||
|
||||
$return = 'withdrawal';
|
||||
|
||||
|
||||
switch ($type) {
|
||||
case 'Withdrawal':
|
||||
return Redirect::route('transactions.index', 'withdrawal');
|
||||
break;
|
||||
case 'Deposit':
|
||||
return Redirect::route('transactions.index', 'deposit');
|
||||
$return = 'deposit';
|
||||
break;
|
||||
case 'Transfer':
|
||||
return Redirect::route('transactions.index', 'transfers');
|
||||
$return = 'transfers';
|
||||
break;
|
||||
}
|
||||
|
||||
return Redirect::route('transactions.index', $return);
|
||||
}
|
||||
|
||||
// TODO this needs cleaning up and thinking over.
|
||||
@@ -506,6 +507,7 @@ class TransactionController extends BaseController
|
||||
$group->delete();
|
||||
}
|
||||
}
|
||||
|
||||
return Response::json(true);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user