From 50e5c2c70a1c8df14c1e294ac061345c6a68eae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Wed, 27 Jan 2021 23:13:56 +0300 Subject: [PATCH] Missing column formatting for exports --- app/Exports/Purchases/Sheets/Bills.php | 3 ++- app/Exports/Sales/Sheets/Invoices.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Exports/Purchases/Sheets/Bills.php b/app/Exports/Purchases/Sheets/Bills.php index 31ae588d6..63097e4fc 100644 --- a/app/Exports/Purchases/Sheets/Bills.php +++ b/app/Exports/Purchases/Sheets/Bills.php @@ -4,9 +4,10 @@ namespace App\Exports\Purchases\Sheets; use App\Abstracts\Export; use App\Models\Document\Document as Model; +use Maatwebsite\Excel\Concerns\WithColumnFormatting; use PhpOffice\PhpSpreadsheet\Style\NumberFormat; -class Bills extends Export +class Bills extends Export implements WithColumnFormatting { public function collection() { diff --git a/app/Exports/Sales/Sheets/Invoices.php b/app/Exports/Sales/Sheets/Invoices.php index 81319c97f..9dd7c8165 100644 --- a/app/Exports/Sales/Sheets/Invoices.php +++ b/app/Exports/Sales/Sheets/Invoices.php @@ -4,9 +4,10 @@ namespace App\Exports\Sales\Sheets; use App\Abstracts\Export; use App\Models\Document\Document as Model; +use Maatwebsite\Excel\Concerns\WithColumnFormatting; use PhpOffice\PhpSpreadsheet\Style\NumberFormat; -class Invoices extends Export +class Invoices extends Export implements WithColumnFormatting { public function collection() {