Skip to content

feat(invoices): allow editing published invoices - #6

Merged
maxehmoon merged 1 commit into
mainfrom
feat/edit-published-invoices
Sep 8, 2026
Merged

maxehmoon merged 1 commit into
mainfrom
feat/edit-published-invoices

Conversation

@maxehmoon

Copy link
Copy Markdown
Owner

Summary

Invoices were locked after leaving draft. Allow issued, paid and void invoices to be edited after a save acknowledgement, keeping the invoice number and saving previous versions in edit history with downloadable PDFs.

Preserve original payment amounts, currencies and exchange rates when invoice details change. Recalculate payment allocations for currency edits, show overpayments and reject stale edits or payments submitted against an outdated currency.

Verification

  • bun run typecheck
  • bun run lint
  • bun run test — 270 passed, one optional PostgreSQL check skipped
  • PostgreSQL verification — all 271 tests passed
  • bun run build
  • bun run test:e2e — all three browser setup and sign-in checks passed
  • Relevant light and dark UI states checked, including published edits, overpayments and current/previous PDFs
  • Documentation updated; no .env.example changes required
  • No secrets, local databases or real customer data included

The production build passes with the existing Next.js dependency-tracing warning.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T12:52:00.487720Z fe8f88b New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@maxehmoon
maxehmoon force-pushed the feat/edit-published-invoices branch from 2b71934 to fe8f88b Compare September 8, 2026 12:46
@maxehmoon
maxehmoon merged commit 4c4fd4c into main Sep 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant