Parcourir la source

fixed note activity report

= il y a 3 ans
Parent
commit
faccde6c6b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      app/Http/Controllers/PracticeManagementController.php

+ 3 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -823,7 +823,9 @@ class PracticeManagementController extends Controller
 
         $now = Carbon::now();
         $startOfCurrentMonth = $now->startOfMonth('Y-m-d');
-        $endOfCurrentMonth = $now->endOfMonth()->format('Y-m-d');
+        $startOfCurrentMonth = $startOfCurrentMonth->toDateString();
+
+        $endOfCurrentMonth  = $now->endOfMonth()->format('Y-m-d');
 
         $rows = DB::table('pro')
         ->selectRaw(" *,