From acd832b621f2331678cca6e4b219a01429dd4347 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:43:55 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/cases/payment-plans-tab.tsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/components/cases/payment-plans-tab.tsx b/src/components/cases/payment-plans-tab.tsx index bba1adb..fec6fd8 100644 --- a/src/components/cases/payment-plans-tab.tsx +++ b/src/components/cases/payment-plans-tab.tsx @@ -394,7 +394,25 @@ export function CasePaymentPlansTab({ caseRecord }: { caseRecord: any }) { {i.paid ? ( - {i.paid_on ? formatDate(i.paid_on) : ""}{i.paid_method ? ` • ${i.paid_method}` : ""}{i.paid_reference ? ` (${i.paid_reference})` : ""} +
+ + updateInstallment(i.id, { + paid_amount: e.target.value === "" ? null : parseFloat(e.target.value) || 0, + }) + } + className="h-7 w-[90px] text-xs" + title="Amount paid" + /> + + {i.paid_on ? formatDate(i.paid_on) : ""} + {i.paid_method ? ` • ${i.paid_method}` : ""} + {i.paid_reference ? ` (${i.paid_reference})` : ""} + +
) : "—"}