diff --git a/app/controllers/TransactionController.php b/app/controllers/TransactionController.php index 0e0adedfa4..e1025384f1 100644 --- a/app/controllers/TransactionController.php +++ b/app/controllers/TransactionController.php @@ -23,6 +23,7 @@ class TransactionController extends BaseController View::share('mainTitleIcon', 'fa-repeat'); } + // TODO this needs cleaning up and thinking over. public function alreadyRelated(TransactionJournal $journal) { @@ -153,6 +154,7 @@ class TransactionController extends BaseController } } + // TODO this needs cleaning up and thinking over. public function doRelate() { $id = intval(Input::get('id')); @@ -366,6 +368,7 @@ class TransactionController extends BaseController return View::make('transactions.relate', compact('journal', 'members')); } + // TODO this needs cleaning up and thinking over. public function relatedSearch(TransactionJournal $journal) { $search = e(trim(Input::get('searchValue'))); @@ -487,6 +490,7 @@ class TransactionController extends BaseController } } + // TODO this needs cleaning up and thinking over. public function unrelate(TransactionJournal $journal) { $groups = $journal->transactiongroups()->get(); diff --git a/app/lib/FireflyIII/Database/Account.php b/app/lib/FireflyIII/Database/Account.php index bce4a00e8e..d03777b6f9 100644 --- a/app/lib/FireflyIII/Database/Account.php +++ b/app/lib/FireflyIII/Database/Account.php @@ -272,6 +272,7 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface $this->storeInitialBalance($account, $data); } + // TODO this needs cleaning up and thinking over. switch ($account->accountType->type) { case 'Asset account': case 'Default account': @@ -299,6 +300,7 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface $model->name = $data['name']; $model->active = isset($data['active']) ? intval($data['active']) : 0; + // TODO this needs cleaning up and thinking over. switch ($model->accountType->type) { case 'Asset account': case 'Default account': @@ -310,7 +312,7 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface if (isset($data['openingbalance']) && isset($data['openingbalancedate']) && strlen($data['openingbalancedate']) > 0) { $openingBalance = $this->openingBalanceTransaction($model); - + // TODO this needs cleaning up and thinking over. if (is_null($openingBalance)) { $this->storeInitialBalance($model, $data); } else {