Skip to content

[IP-513]: duplicate-number prevention via Observers#540

Draft
nielsdrost7 wants to merge 1 commit into
developfrom
feature/513-514-duplicate-prevention
Draft

[IP-513]: duplicate-number prevention via Observers#540
nielsdrost7 wants to merge 1 commit into
developfrom
feature/513-514-duplicate-prevention

Conversation

@nielsdrost7

@nielsdrost7 nielsdrost7 commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

New tests: InvoiceDuplicateNumberPreventionTest, QuoteDuplicateNumberPreventionTest.

Closes

Closes #513 — invoice duplicate-number prevention via Observer, scope-safe check
Closes #514 — quote duplicate-number prevention; QuoteObserver actually wired up

Follow-up issues

None.

Test plan

  • php artisan test --filter=InvoiceDuplicateNumberPreventionTest — duplicate invoice number throws expected exception
  • php artisan test --filter=QuoteDuplicateNumberPreventionTest — duplicate quote number throws expected exception
  • Verify no booted() method remains in Invoice.php or Quote.php

@InvoicePlane InvoicePlane deleted a comment from coderabbitai Bot Jun 14, 2026
@InvoicePlane InvoicePlane deleted a comment from coderabbitai Bot Jul 3, 2026
@nielsdrost7 nielsdrost7 changed the title fix(#513,#514): duplicate-number prevention via Observers [IP-513]: duplicate-number prevention via Observers Jul 3, 2026
@nielsdrost7 nielsdrost7 marked this pull request as draft July 3, 2026 16:32
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@nielsdrost7 nielsdrost7 force-pushed the feature/513-514-duplicate-prevention branch from fbdc0d3 to 26b5edd Compare July 4, 2026 12:24
@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a9f764b3-373b-4d2e-8416-825e59dc45f5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/513-514-duplicate-prevention

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant