fix sales report decimals

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