# Changelog - surf-invoicing

## v1.0.0 (2026-03-11)
- Initial module creation: invoice generation, cart linkage, immutable snapshots
- Added service layer: InvoiceEligibilityService, InvoiceFactory, InvoiceGenerationService
- Console command: `php yii surf-invoicing/generate` with dry-run support
- Cart update behavior: prevents edits on invoiced carts
- Migration: creates `invoices` table, links to basket
- Models: Invoicesbe (uses InvoiceRulesTrait, HasCreditNotesTrait)
- Refactored to remove credit_notes table creation (now in credit-notes module)
- Updated to require `portalpeople/credit-notes` package
- Updated InvoiceController for entity-based credit notes
- Documentation: plan, todo, integration, structure, cleanup

## v1.0.1 (2026-03-11)
- Security review and recommendations added in docs/
- Transfer manifest, archive, and checksum generated for server migration
- Legacy surf-invoices module removed
