Added some todo's.

This commit is contained in:
James Cole 2014-12-05 21:45:48 +01:00
parent 357638a26c
commit 834f8382e9
2 changed files with 7 additions and 1 deletions

View File

@ -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();

View File

@ -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 {