mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-18 20:38:57 +00:00
Removed some old code, added todo's.
This commit is contained in:
@@ -21,10 +21,6 @@ class HomeController extends BaseController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
// Event::fire('limits.check');
|
||||
// Event::fire('piggybanks.check');
|
||||
// Event::fire('recurring.check');
|
||||
|
||||
// count, maybe Firefly needs some introducing text to show:
|
||||
/** @var \FireflyIII\Database\Account $acct */
|
||||
$acct = App::make('FireflyIII\Database\Account');
|
||||
|
||||
@@ -179,7 +179,7 @@ class PiggybankController extends BaseController
|
||||
/*
|
||||
* Create event!
|
||||
*/
|
||||
Event::fire('piggybank.addMoney', [$piggybank, $amount]);
|
||||
Event::fire('piggybank.addMoney', [$piggybank, $amount]); // new and used.
|
||||
|
||||
Session::flash('success', 'Added ' . mf($amount, false) . ' to "' . e($piggybank->name) . '".');
|
||||
} else {
|
||||
@@ -208,7 +208,7 @@ class PiggybankController extends BaseController
|
||||
/*
|
||||
* Create event!
|
||||
*/
|
||||
Event::fire('piggybank.removeMoney', [$piggybank, $amount]);
|
||||
Event::fire('piggybank.removeMoney', [$piggybank, $amount]); // new and used.
|
||||
|
||||
Session::flash('success', 'Removed ' . mf($amount, false) . ' from "' . e($piggybank->name) . '".');
|
||||
} else {
|
||||
@@ -279,7 +279,7 @@ class PiggybankController extends BaseController
|
||||
/*
|
||||
* Create the relevant repetition per Event.
|
||||
*/
|
||||
Event::fire('piggybank.storePiggybank', [$piggyBank]);
|
||||
Event::fire('piggybank.storePiggybank', [$piggyBank]); // new and used.
|
||||
|
||||
Session::flash('success', 'New piggy bank stored!');
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ class TransactionController extends BaseController
|
||||
/*
|
||||
* Trigger creation of new piggy bank event
|
||||
*/
|
||||
Event::fire('piggybank.destroyTransfer', [$transactionJournal]);
|
||||
Event::fire('piggybank.destroyTransfer', [$transactionJournal]); // new and used.
|
||||
|
||||
/** @var \FireflyIII\Database\TransactionJournal $repository */
|
||||
$repository = App::make('FireflyIII\Database\TransactionJournal');
|
||||
@@ -320,7 +320,7 @@ class TransactionController extends BaseController
|
||||
* piggy bank and store an event.
|
||||
*/
|
||||
if (!is_null(Input::get('piggybank_id')) && intval(Input::get('piggybank_id')) > 0) {
|
||||
Event::fire('piggybank.storeTransfer', [$journal, intval(Input::get('piggybank_id'))]);
|
||||
Event::fire('piggybank.storeTransfer', [$journal, intval(Input::get('piggybank_id'))]); // new and used.
|
||||
}
|
||||
|
||||
if ($data['post_submit_action'] == 'create_another') {
|
||||
@@ -363,8 +363,7 @@ class TransactionController extends BaseController
|
||||
if ($messageBag->count() == 0) {
|
||||
// has been saved, return to index:
|
||||
Session::flash('success', 'Transaction updated!');
|
||||
// Event::fire('journals.update', [$journal]);
|
||||
Event::fire('piggybank.updateTransfer', [$journal]);
|
||||
Event::fire('piggybank.updateTransfer', [$journal]); // new and used.
|
||||
|
||||
if (Input::get('post_submit_action') == 'return_to_edit') {
|
||||
return Redirect::route('transactions.edit', $journal->id)->withInput();
|
||||
|
||||
Reference in New Issue
Block a user