mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-22 12:04:00 +00:00
Update GoogleChartController.php
This commit is contained in:
@@ -236,7 +236,7 @@ class GoogleChartController extends Controller
|
|||||||
$start = Session::get('start', Carbon::now()->startOfMonth());
|
$start = Session::get('start', Carbon::now()->startOfMonth());
|
||||||
$end = Session::get('end', Carbon::now()->endOfMonth());
|
$end = Session::get('end', Carbon::now()->endOfMonth());
|
||||||
$set = TransactionJournal::
|
$set = TransactionJournal::
|
||||||
where('user_id',Auth::user()->id)
|
where('transaction_journals.user_id',Auth::user()->id)
|
||||||
->leftJoin(
|
->leftJoin(
|
||||||
'transactions',
|
'transactions',
|
||||||
function (JoinClause $join) {
|
function (JoinClause $join) {
|
||||||
@@ -249,6 +249,7 @@ class GoogleChartController extends Controller
|
|||||||
->leftJoin('categories', 'categories.id', '=', 'category_transaction_journal.category_id')
|
->leftJoin('categories', 'categories.id', '=', 'category_transaction_journal.category_id')
|
||||||
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
|
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id')
|
||||||
->before($end)
|
->before($end)
|
||||||
|
->where('categories.user_id',Auth::user()->id)
|
||||||
->after($start)
|
->after($start)
|
||||||
->where('transaction_types.type', 'Withdrawal')
|
->where('transaction_types.type', 'Withdrawal')
|
||||||
->groupBy('categories.id')
|
->groupBy('categories.id')
|
||||||
|
Reference in New Issue
Block a user