From 5459c77829c6c416b9cea72133274546063db44f Mon Sep 17 00:00:00 2001 From: Witel Group Date: Wed, 21 Feb 2024 07:20:45 +0000 Subject: [PATCH] use 0 instead of - in reports --- app/Exports/Tollhouse/CompareProgramAndFunction.php | 2 +- app/Exports/Tollhouse/summaryAccidentPerformanceCity.php | 2 +- .../laravel-excel-W6nahFYlgFYpPcczU4evGOl26VDOnwF9.html | 0 .../laravel-excel-wJVBDndHDLaPT9Ehv3A75cUSLdT7Msmi.html | 0 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 storage/framework/laravel-excel/laravel-excel-W6nahFYlgFYpPcczU4evGOl26VDOnwF9.html create mode 100644 storage/framework/laravel-excel/laravel-excel-wJVBDndHDLaPT9Ehv3A75cUSLdT7Msmi.html diff --git a/app/Exports/Tollhouse/CompareProgramAndFunction.php b/app/Exports/Tollhouse/CompareProgramAndFunction.php index 99a9988a..b22fad57 100644 --- a/app/Exports/Tollhouse/CompareProgramAndFunction.php +++ b/app/Exports/Tollhouse/CompareProgramAndFunction.php @@ -149,7 +149,7 @@ class CompareProgramAndFunction implements FromView, ShouldAutoSize, WithEvents, $query .= " GROUP BY province_id ORDER BY province_id ASC;"; - $data = DB::select(DB::raw($query)); + $data = DB::select($query); $sum = [ 'EhdasCount' => 0, diff --git a/app/Exports/Tollhouse/summaryAccidentPerformanceCity.php b/app/Exports/Tollhouse/summaryAccidentPerformanceCity.php index 22346531..a8eb4ee3 100644 --- a/app/Exports/Tollhouse/summaryAccidentPerformanceCity.php +++ b/app/Exports/Tollhouse/summaryAccidentPerformanceCity.php @@ -48,7 +48,7 @@ class summaryAccidentPerformanceCity implements FromView, ShouldAutoSize, WithEv $array[$value->city_id] = [ 'province_fa' => $value->province_fa, 'city_fa' => $value->city_fa, - 'avg' => '-', + 'avg' => 0, 'count' => '-' ]; } diff --git a/storage/framework/laravel-excel/laravel-excel-W6nahFYlgFYpPcczU4evGOl26VDOnwF9.html b/storage/framework/laravel-excel/laravel-excel-W6nahFYlgFYpPcczU4evGOl26VDOnwF9.html new file mode 100644 index 00000000..e69de29b diff --git a/storage/framework/laravel-excel/laravel-excel-wJVBDndHDLaPT9Ehv3A75cUSLdT7Msmi.html b/storage/framework/laravel-excel/laravel-excel-wJVBDndHDLaPT9Ehv3A75cUSLdT7Msmi.html new file mode 100644 index 00000000..e69de29b