Small bug fixes.

This commit is contained in:
James Cole
2014-12-20 07:33:59 +01:00
parent 8b901084fe
commit e86547645c
4 changed files with 6 additions and 5 deletions

View File

@@ -260,7 +260,9 @@ class Account implements CUD, CommonDatabaseCalls, AccountInterface
$journal->delete();
}
// also delete transactions.
if (count($transactions) > 0) {
\Transaction::whereIn('id', $transactions)->delete();
}
/*

View File

@@ -63,8 +63,7 @@ class Steam
{
$user = \Auth::user();
if ($user) {
\BudgetLimit::leftJoin('budgets', 'budgets.id', '=', 'budget_limits.budget_id')->where('budgets.user_id', $user->id)
->where('budget_limits.amount', 0)->delete();
\BudgetLimit::where('amount', 0)->delete();
}
}

View File