Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-26 08:52:01 +00:00
co-authored by renee-png
parent e5db24c728
commit 06f9127422
@@ -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,