diff --git a/src/components/collections/payment-plans-panel.tsx b/src/components/collections/payment-plans-panel.tsx index fd9f86b..773d33c 100644 --- a/src/components/collections/payment-plans-panel.tsx +++ b/src/components/collections/payment-plans-panel.tsx @@ -245,8 +245,21 @@ export function PaymentPlansPanel({ {overdue && " ยท overdue"} -
- {formatCurrency(i.amount)} +
+ {i.paid ? ( + updatePaidAmount(i.id, e.target.value)} + className="h-7 w-[100px] text-sm text-right tabular-nums" + title="Amount paid" + /> + ) : ( +
+ {formatCurrency(i.amount)} +
+ )}
);