diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.php index 99887eba..1e49aba9 100644 --- a/app/Http/Controllers/ReportController.php +++ b/app/Http/Controllers/ReportController.php @@ -26,8 +26,7 @@ class ReportController extends Controller $query->whereBetween( 'invoice_date', [$start->format('Y-m-d'), $end->format('Y-m-d')] - ) - ->where('paid_status', Invoice::STATUS_PAID); + ); }]) ->customer() ->whereCompany($company->id) diff --git a/app/InvoiceItem.php b/app/InvoiceItem.php index 6d4c3bd8..9b75a507 100644 --- a/app/InvoiceItem.php +++ b/app/InvoiceItem.php @@ -60,7 +60,7 @@ class InvoiceItem extends Model $query->whereBetween( 'invoice_date', [$start->format('Y-m-d'), $end->format('Y-m-d')] - )->where('paid_status', Invoice::STATUS_PAID); + ); }); } diff --git a/app/User.php b/app/User.php index 4951a842..780332f6 100644 --- a/app/User.php +++ b/app/User.php @@ -216,7 +216,7 @@ class User extends Authenticatable implements HasMedia $query->whereBetween( 'invoice_date', [$start->format('Y-m-d'), $end->format('Y-m-d')] - )->where('paid_status', Invoice::STATUS_PAID); + ); }); }