Skip to content

Add revenue lifecycle safeguards#11

Draft
roncodes wants to merge 3 commits into
mainfrom
dev-v0.0.6
Draft

Add revenue lifecycle safeguards#11
roncodes wants to merge 3 commits into
mainfrom
dev-v0.0.6

Conversation

@roncodes

Copy link
Copy Markdown
Member

Summary

  • Add a Ledger revenue lifecycle service for order cancellation, order deletion, invoice deletion, restore handling, transaction voiding, paid-invoice review metadata, and reversal journal creation.
  • Keep order and invoice observers thin by delegating lifecycle behavior to the shared service.
  • Add a dry-run-first repair command for inactive orders, deleted or inactive invoices, and missing revenue recognition reversals.
  • Add source-contract coverage for the lifecycle delegation and repair command registration.

Validation

  • PHP syntax checks passed for the touched Ledger service, command, observer, provider, and test files.
  • Cached diff whitespace check passed.
  • Local Pest/PHPUnit execution was blocked by missing or mismatched server test dependencies.

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