Implemented #264

This commit is contained in:
James Cole
2016-06-07 12:22:46 +02:00
parent c14ec8b006
commit c619b8730b
3 changed files with 19 additions and 0 deletions

View File

@@ -156,6 +156,18 @@ class BudgetRepository implements BudgetRepositoryInterface
return $set;
}
/**
* @return bool
*/
public function cleanupBudgets(): bool
{
// delete limits with amount 0:
BudgetLimit::where('amount', 0)->delete();
return true;
}
/**
* @return Collection
*/