From 88945333edeaf3df1495b5024b2ecfbb932326fd 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 09:05:28 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- .../collections/payment-plans-panel.tsx | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/components/collections/payment-plans-panel.tsx b/src/components/collections/payment-plans-panel.tsx index de59105..f6f2feb 100644 --- a/src/components/collections/payment-plans-panel.tsx +++ b/src/components/collections/payment-plans-panel.tsx @@ -334,6 +334,7 @@ export function PaymentPlansPanel({ {ins.map((i) => { const overdue = !i.paid && parseDateOnly(i.due_date)! < new Date(new Date().toDateString()); + const req = i.payment_request_id ? requests[i.payment_request_id] : undefined; return (
paid {formatDate(i.paid_on)} )} + {!i.paid && req && ( + + {req.status} + + )}
Due {formatDate(i.due_date)} @@ -367,6 +373,48 @@ export function PaymentPlansPanel({ {formatCurrency(i.amount)}
)} + {!i.paid && !req && ( + + )} + {!i.paid && req && ( + <> + {req.stripe_checkout_url && ( + + )} + + + )} );