Fix: Fix SQL GROUP BY error in daily/hourly summary aggregation - Use COALESCE in GROUP BY to handle NULL tariff amounts - Remove invalid is_active check on tariffs table
This commit is contained in:
@@ -58,7 +58,7 @@ class DailySummaryService
|
||||
e.location_code,
|
||||
e.gate_code,
|
||||
e.category,
|
||||
t.amount
|
||||
COALESCE(t.amount, 0)
|
||||
";
|
||||
|
||||
$stmt = $this->db->prepare($sql);
|
||||
|
||||
Reference in New Issue
Block a user