mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 15:04:32 -04:00
Removed deleted and added archived records to the chart builder
This commit is contained in:
parent
3c5a3897cc
commit
ef49e970a7
@ -52,7 +52,7 @@ class ReportController extends \BaseController
|
||||
$records = DB::table($entityType.'s')
|
||||
->select(DB::raw('sum(amount) as total, '.$groupBy.'('.$entityType.'_date) as '.$groupBy))
|
||||
->where('account_id', '=', Auth::user()->account_id)
|
||||
->where($entityType.'s.deleted_at', '=', null)
|
||||
->where($entityType.'s.is_deleted', '=', false)
|
||||
->where($entityType.'s.'.$entityType.'_date', '>=', $startDate->format('Y-m-d'))
|
||||
->where($entityType.'s.'.$entityType.'_date', '<=', $endDate->format('Y-m-d'))
|
||||
->groupBy($groupBy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user