diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 712393644b4c..1aabd733b1c5 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -365,7 +365,7 @@ class CheckData extends Command /* Due to accounting differences we need to perform a second loop here to ensure there actually is an issue */ $clients->each(function ($client_record) use ($credit_total_applied) { - $client = Client::find($client_record->id); + $client = Client::withTrashed()->find($client_record->id); $total_invoice_payments = 0; @@ -594,6 +594,7 @@ class CheckData extends Command 'client', 'client_contact', 'payment', + 'recurring_invoice', ], 'invoices' => [ 'client',