Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
7ac19ab20d
commit
e5db24c728
@@ -245,8 +245,21 @@ export function PaymentPlansPanel({
|
||||
{overdue && " · overdue"}
|
||||
</div>
|
||||
</div>
|
||||
<div className="text-sm font-medium tabular-nums">
|
||||
{formatCurrency(i.amount)}
|
||||
<div className="flex items-center gap-2">
|
||||
{i.paid ? (
|
||||
<Input
|
||||
type="number"
|
||||
step="0.01"
|
||||
value={i.paid_amount ?? i.amount}
|
||||
onChange={(e) => updatePaidAmount(i.id, e.target.value)}
|
||||
className="h-7 w-[100px] text-sm text-right tabular-nums"
|
||||
title="Amount paid"
|
||||
/>
|
||||
) : (
|
||||
<div className="text-sm font-medium tabular-nums">
|
||||
{formatCurrency(i.amount)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user