Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
Trying to fix sandwiches count in WEI admin dashboard (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud11g committed Sep 5, 2023
1 parent 0429728 commit c50161f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/WEIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function adminGraph()
//TODO NUL A JETER
$graphFood = Payment::select(DB::raw('DATE_FORMAT(created_at,\'%d-%m-%Y\') as day'), DB::raw('COUNT(id) as sum'))
->where('type', 'payment')
->where(DB::raw('`amount`%500'), (30 or 330))
->whereIn(DB::raw('`amount`%500'), [30, 330])
->where('state', 'paid')
->orderBy('created_at')
->groupBy(DB::raw('DATE_FORMAT(created_at,\'%d-%m-%Y\')'))->get();
Expand Down

0 comments on commit c50161f

Please sign in to comment.