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:
@@ -859,21 +859,9 @@ 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"
|
||||
@@ -884,7 +872,6 @@ export default function PaymentsRecentTable({
|
||||
>
|
||||
Void
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
|
||||
{/* When PAID → Revert */}
|
||||
|
||||
Reference in New Issue
Block a user