From 06f9127422d967993b9c5967fe8c7a139c6acf0f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 08:52:01 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/collections/payment-plans-panel.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/collections/payment-plans-panel.tsx b/src/components/collections/payment-plans-panel.tsx index 773d33c..33bff81 100644 --- a/src/components/collections/payment-plans-panel.tsx +++ b/src/components/collections/payment-plans-panel.tsx @@ -281,6 +281,7 @@ export function PaymentPlansPanel({ open={createOpen} onOpenChange={setCreateOpen} collectionId={collectionId} + caseId={caseId ?? null} userId={user?.id} onSaved={load} /> @@ -302,12 +303,14 @@ function CreatePlanDialog({ open, onOpenChange, collectionId, + caseId, userId, onSaved, }: { open: boolean; onOpenChange: (v: boolean) => void; collectionId: string; + caseId?: string | null; userId?: string; onSaved: () => void; }) { @@ -345,6 +348,7 @@ function CreatePlanDialog({ .from("payment_plans") .insert({ collection_id: collectionId, + case_id: caseId ?? null, name: name || null, total_amount: t, down_payment: parseFloat(down) || 0,