Merge pull request #6214 from turbo124/v5-develop

Minor fixes for check data
This commit is contained in:
David Bomba 2021-07-07 08:12:10 +10:00 committed by GitHub
commit fcd87fe20d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */ /* 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) { $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; $total_invoice_payments = 0;
@ -594,6 +594,7 @@ class CheckData extends Command
'client', 'client',
'client_contact', 'client_contact',
'payment', 'payment',
'recurring_invoice',
], ],
'invoices' => [ 'invoices' => [
'client', 'client',