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

Commit

Permalink
Merge pull request #315 from ungdev/dev
Browse files Browse the repository at this point in the history
Fix on perm pages and wei sandwiches count
  • Loading branch information
arnaud11g authored Sep 5, 2023
2 parents 9733417 + 0429728 commit 4fc7c0f
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'), Config::get('services.wei.sandwichPrice'))
->where(DB::raw('`amount`%500'), (30 or 330))
->where('state', 'paid')
->orderBy('created_at')
->groupBy(DB::raw('DATE_FORMAT(created_at,\'%d-%m-%Y\')'))->get();
Expand Down

0 comments on commit 4fc7c0f

Please sign in to comment.