Add invoice edit, delete, and bulk delete UI #1

Merged
amoussa1229 merged 1 commit from feature/invoice-edit-delete into main 2026-04-03 15:44:30 +00:00
amoussa1229 commented 2026-04-03 15:42:33 +00:00 (Migrated from github.com)

Summary

  • Edit invoice modal: Reuses create form with pre-filled fields (line items, vendor, dates, terms, notes). Invoice number and PO linkage locked during edit.
  • Delete invoice: Available from detail view with browser confirmation, and via multi-select bulk delete with a confirmation modal listing all invoices to be removed
  • Bulk select/delete: Checkboxes on invoice rows with select-all toggle. Paid and EDI-submitted invoices cannot be selected. "Delete Selected (N)" button appears in card header.
  • "Modified After Send" badge: New orange EDI status badge when invoice is edited after EDI submission
  • PO remaining fix: Correctly accounts for current invoice total during edit so remaining balance is accurate in real-time

Test plan

  • Click Edit on an invoice — modal pre-fills all fields including line items
  • Change line items and verify subtotal/tax/total/PO remaining update in real-time
  • Save edit and verify table reflects new values
  • Delete an invoice from the detail view — confirm dialog appears
  • Select multiple invoices via checkboxes — "Delete Selected" button appears
  • Confirm paid/submitted invoices have no checkbox
  • Click Delete Selected — confirmation modal lists all selected invoices
  • Verify "Modified After Send" orange badge appears after editing a submitted invoice

🤖 Generated with Claude Code

## Summary - **Edit invoice modal**: Reuses create form with pre-filled fields (line items, vendor, dates, terms, notes). Invoice number and PO linkage locked during edit. - **Delete invoice**: Available from detail view with browser confirmation, and via multi-select bulk delete with a confirmation modal listing all invoices to be removed - **Bulk select/delete**: Checkboxes on invoice rows with select-all toggle. Paid and EDI-submitted invoices cannot be selected. "Delete Selected (N)" button appears in card header. - **"Modified After Send" badge**: New orange EDI status badge when invoice is edited after EDI submission - **PO remaining fix**: Correctly accounts for current invoice total during edit so remaining balance is accurate in real-time ## Test plan - [ ] Click Edit on an invoice — modal pre-fills all fields including line items - [ ] Change line items and verify subtotal/tax/total/PO remaining update in real-time - [ ] Save edit and verify table reflects new values - [ ] Delete an invoice from the detail view — confirm dialog appears - [ ] Select multiple invoices via checkboxes — "Delete Selected" button appears - [ ] Confirm paid/submitted invoices have no checkbox - [ ] Click Delete Selected — confirmation modal lists all selected invoices - [ ] Verify "Modified After Send" orange badge appears after editing a submitted invoice 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No description provided.