refactor: remove redundant Pay in Full button

The inline status dropdown now handles this via pay-absolute-full-claim,
making the standalone button a duplicate.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gitead
2026-05-06 19:26:37 -04:00
parent 108e2406e2
commit f3008aed7d

View File

@@ -859,32 +859,19 @@ export default function PaymentsRecentTable({
</Button>
)}
{/* When NOT PAID and NOT VOID → Pay in Full + Void */}
{/* When NOT PAID and NOT VOID → Void */}
{payment.status !== "PAID" &&
payment.status !== "VOID" && (
<>
<Button
variant="warning"
size="sm"
onClick={() =>
handlePayAbsoluteFullDue(payment.id)
}
>
Pay in Full
</Button>
{/* NEW: Void */}
<Button
variant="outline"
size="sm"
onClick={() => {
setVoidPaymentId(payment.id);
setIsVoidOpen(true);
}}
>
Void
</Button>
</>
<Button
variant="outline"
size="sm"
onClick={() => {
setVoidPaymentId(payment.id);
setIsVoidOpen(true);
}}
>
Void
</Button>
)}
{/* When PAID → Revert */}