Commit f8b4b352 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(death): remove non-existent is_voided column from subscriptions query

The subscriptions table has no is_voided column — the status filter
('pending', 'overdue') is sufficient.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 196d97b0
...@@ -163,7 +163,7 @@ class DeathController extends Controller ...@@ -163,7 +163,7 @@ class DeathController extends Controller
$overdueSubscriptions = $db->select( $overdueSubscriptions = $db->select(
"SELECT financial_year, COUNT(*) as cnt, SUM(total_amount - paid_amount) as total_due "SELECT financial_year, COUNT(*) as cnt, SUM(total_amount - paid_amount) as total_due
FROM subscriptions FROM subscriptions
WHERE member_id = ? AND status IN ('pending', 'overdue') AND is_voided = 0 WHERE member_id = ? AND status IN ('pending', 'overdue')
GROUP BY financial_year GROUP BY financial_year
ORDER BY financial_year ASC", ORDER BY financial_year ASC",
[(int) $memberId] [(int) $memberId]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment