Commit 653f50e9 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix(waiver): fix missing 'description' column in installment_plans query

The column is 'notes', not 'description'.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 0959adae
......@@ -217,7 +217,7 @@ final class WaiverProcessor
// 3. Installments (active/overdue installment plans)
$installments = $db->select(
"SELECT s.id, s.due_date, (s.amount - s.paid_amount) as due, p.description as plan_desc
"SELECT s.id, s.due_date, (s.amount - s.paid_amount) as due, p.notes as plan_desc
FROM installment_schedule s JOIN installment_plans p ON p.id = s.installment_plan_id
WHERE p.member_id = ? AND p.status IN ('active','overdue') AND s.status IN ('pending','overdue') AND (s.amount - s.paid_amount) > 0",
[$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