From 17fe35be04c14f0cbd63ef25ba82e4fa8b802c87 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 6 Jul 2021 17:22:12 +1000 Subject: [PATCH 1/2] Add recurring invoices into checks --- app/Console/Commands/CheckData.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 712393644b4c..8f68dad24cdf 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -594,6 +594,7 @@ class CheckData extends Command 'client', 'client_contact', 'payment', + 'recurring_invoice', ], 'invoices' => [ 'client', From 5204c9518a7f4a52f4940c2b6737dc999088aaf7 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 7 Jul 2021 08:11:44 +1000 Subject: [PATCH 2/2] Minor fixes for check dta --- app/Console/Commands/CheckData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 8f68dad24cdf..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;