From 5e0469e2bf2de53dc4b254d1eab9fb5400d72d41 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Fri, 26 Nov 2021 18:28:00 +0800 Subject: [PATCH] add column to user csv list --- app/Classes/Modules/Exports/Services/ExportsCustomers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsCustomers.php b/app/Classes/Modules/Exports/Services/ExportsCustomers.php index ba3fd66a..97d974e6 100644 --- a/app/Classes/Modules/Exports/Services/ExportsCustomers.php +++ b/app/Classes/Modules/Exports/Services/ExportsCustomers.php @@ -48,7 +48,7 @@ class ExportsCustomers implements FromQuery, WithHeadingRow, WithMapping $company->reference, $company->name, $company->employees()->first()->name, - $company->contacts()->first()->phone, + $company->contacts()->first() ? $company->contacts()->first()->phone : '', $company->type === CompanyType::COMPANY_BUSINESS ? 'Company' : 'individual', count($company->bookings), $company->bookings()->sum('fix_amount'),