Accidentally commented out date limits in query.

This commit is contained in:
James Cole
2015-04-09 21:01:08 +02:00
parent 587b94153d
commit 0224d1d59b
2 changed files with 4 additions and 2 deletions

View File

@@ -50,8 +50,8 @@ class JsonController extends Controller
$box = Input::get('box');
$in = Auth::user()->transactionjournals()
->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id')
//->before($end)
// ->after($start)
->before($end)
->after($start)
->transactionTypes(['Withdrawal'])
->where('transactions.amount', '>', 0)
->first([DB::Raw('SUM(transactions.amount) as `totalAmount`')]);