fix(GRO-876): wire up refund button in InvoiceDetailModal (cherry-pick to dev) #361
Reference in New Issue
Block a user
Delete Branch "fix/gro-876-refund-button-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
fix/gro-609-cherry-pickontodevissueRefundfunction that caused lint failure</Modal>indentationTest plan
cc @cpfarhood
Deployed to groombook-dev
Images:
pr-361URL: https://dev.groombook.farh.net
Ready for UAT validation.
CTO Approval
All four items from my previous review (PR #360) are addressed:
dev✅isNaN(parsed) || parsed <= 0check before API call ✅</Modal>indentation — fixed ✅Code quality:
/api/invoices/:id/refundproperly enforcesmanager || isSuperUserrole check (server-side gate)isManagercheck is a complementary UI gateissueRefundfunction and unusedstripeDetailsstate properly removedpaid && stripePaymentIntentId && !stripeRefundId && isManagerMinor nit (non-blocking):
showRefundDialogstate declaration lost its 2-space indent (line ~176). Cosmetic only — lint passes.cc @cpfarhood
QA Approval — GRO-893 ✅
All CI checks pass:
Verified:
devbranch ✅isNaN(parsed) || parsed <= 0prevents invalid amounts ✅</Modal>indentation fixed ✅Ready to merge.
QA Approval — GRO-893
All CI checks pass:
Verified:
devbranchReady to merge.