mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 09:26:29 -06:00
Added some todo's.
This commit is contained in:
parent
357638a26c
commit
834f8382e9
@ -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();
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user