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:43:55 +00:00
co-authored by renee-png
parent 7c0a69575e
commit acd832b621
+19 -1
View File
@@ -394,7 +394,25 @@ export function CasePaymentPlansTab({ caseRecord }: { caseRecord: any }) {
</TableCell>
<TableCell className="text-xs">
{i.paid ? (
<span>{i.paid_on ? formatDate(i.paid_on) : ""}{i.paid_method ? ` • ${i.paid_method}` : ""}{i.paid_reference ? ` (${i.paid_reference})` : ""}</span>
<div className="flex items-center gap-1.5">
<Input
type="number"
step="0.01"
value={i.paid_amount ?? i.amount}
onChange={(e) =>
updateInstallment(i.id, {
paid_amount: e.target.value === "" ? null : parseFloat(e.target.value) || 0,
})
}
className="h-7 w-[90px] text-xs"
title="Amount paid"
/>
<span className="text-muted-foreground">
{i.paid_on ? formatDate(i.paid_on) : ""}
{i.paid_method ? ` • ${i.paid_method}` : ""}
{i.paid_reference ? ` (${i.paid_reference})` : ""}
</span>
</div>
) : "—"}
</TableCell>
<TableCell className="text-right">