diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 2df86c581f9d..a62b73c89ed0 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -44,12 +44,12 @@ class Handler extends ExceptionHandler * @var array */ protected $dontReport = [ - PDOException::class, - MaxAttemptsExceededException::class, - CommandNotFoundException::class, - ValidationException::class, - ModelNotFoundException::class, - NotFoundHttpException::class, + // PDOException::class, + // MaxAttemptsExceededException::class, + // CommandNotFoundException::class, + // ValidationException::class, + // ModelNotFoundException::class, + // NotFoundHttpException::class, ]; protected $selfHostDontReport = [ diff --git a/app/Services/Report/ARDetailReport.php b/app/Services/Report/ARDetailReport.php index c283a0a84ab0..3787acd07cd5 100644 --- a/app/Services/Report/ARDetailReport.php +++ b/app/Services/Report/ARDetailReport.php @@ -100,8 +100,6 @@ class ARDetailReport extends BaseExport $query = $this->filterByClients($query); - $this->csv->insertOne($this->buildHeader()); - $query->cursor() ->each(function ($invoice) { $this->csv->insertOne($this->buildRow($invoice)); diff --git a/app/Services/Report/ARSummaryReport.php b/app/Services/Report/ARSummaryReport.php index 58d509fbcf78..b561d0fbf538 100644 --- a/app/Services/Report/ARSummaryReport.php +++ b/app/Services/Report/ARSummaryReport.php @@ -122,7 +122,10 @@ class ARSummaryReport extends BaseExport ->whereIn('status_id', [Invoice::STATUS_SENT, Invoice::STATUS_PARTIAL]) ->where('balance', '>', 0) ->where('is_deleted', 0) - ->where('due_date', '<', now()->startOfDay()) + ->where(function ($query){ + $query->where('due_date', '<', now()->startOfDay()) + ->orWhereNull('due_date'); + }) ->sum('balance'); return Number::formatMoney($amount, $this->client);