mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 07:23:59 +00:00
fix customer export
This commit is contained in:
@@ -59,7 +59,7 @@ class ExportsCustomers implements FromQuery, WithHeadings, WithHeadingRow, WithM
|
||||
$company->contacts()->first() ? $company->contacts()->first()->phone : '',
|
||||
$company->type === CompanyType::COMPANY_BUSINESS ? 'Company' : 'individual',
|
||||
count($company->bookings),
|
||||
$company->bookings()->orderByDesc('id')->first(),
|
||||
$company->bookings()->orderByDesc('id')->first()->created_at,
|
||||
$company->bookings()->sum('fix_amount'),
|
||||
\PhpOffice\PhpSpreadsheet\Shared\Date::dateTimeToExcel($company->created_at),
|
||||
count($company->segments()->where('segment_id', '=', 5)->get()) ? 'Exchange 1.0' : 'Exchange 2.0'
|
||||
|
||||
Reference in New Issue
Block a user