Merge pull request #6209 from turbo124/master

Minor fixes for migration
This commit is contained in:
David Bomba 2021-07-04 22:10:22 +10:00 committed by GitHub
commit f441166133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,6 +431,10 @@ info("get company");
foreach($agts as $agt) { foreach($agts as $agt) {
$payment_method = $agt->default_payment_method; $payment_method = $agt->default_payment_method;
if(!$payment_method)
continue;
$contact = Contact::where('id', $payment_method->contact_id)->withTrashed()->first(); $contact = Contact::where('id', $payment_method->contact_id)->withTrashed()->first();
$transformed[] = [ $transformed[] = [