fix sales report decimals

This commit is contained in:
omair saleh
2021-10-06 21:54:08 +08:00
parent 2895acc8fc
commit 9af8dd0d0e
@@ -19,7 +19,7 @@ use Illuminate\Http\Request;
class MonthlyReportController
{
public function salesReport(Request $request): JsonResponse {
$today = Carbon::now()->subMonth();
$today = Carbon::now();
$containers = Container::whereMonth('loading_date', $today->format('m'))->whereYear('loading_date', $today->format('Y'))->orderBy('loading_date')->get();