Skip to content

add new error code: CAN_NOT_VOID_IMMUTABLE_COMMITTED_INVOICE - #135

Open
xsalefter wants to merge 1 commit into
masterfrom
errorcode-void_immutable_inv
Open

xsalefter wants to merge 1 commit into
masterfrom
errorcode-void_immutable_inv

Conversation

@xsalefter

Copy link
Copy Markdown
Contributor

See killbill/killbill#2332 , line:

voidInvoice on a COMMITTED invoice fails with a new error code. DRAFT invoices can still be voided.

Copilot AI balanced review requested due to automatic review settings December 5, 2026 20:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

No active review issues were identified for the new immutable-invoice error code and its correction guidance.

No open issues 🎉

What changed in this PR

Adds an API error code supporting the immutable-invoice behavior described in issue #2332.

Changes:

  • Defines CAN_NOT_VOID_IMMUTABLE_COMMITTED_INVOICE with code 4034.
  • Adds an error message directing users to item adjustments for corrections.
File Description
src/​main/​java/​org/​killbill/​billing/​ErrorCode.java Adds the error constant and message for attempts to void immutable committed invoices.

Review effort: Balanced

@xsalefter
xsalefter requested review from pierre and sbrossie December 5, 2026 20:23
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.

2 participants