Sfoglia il codice sorgente

fixed note activity report

= 3 anni fa
parent
commit
faccde6c6b
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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(" *,