feat(114): accounting configs refactor + invoice configs CRUD

Phase 114 complete (v3.7 Invoices):
- /settings/accounting jako hub-rozdroze (Paragony / Faktury)
- /settings/accounting/receipts + /invoices osobne podstrony list i edycji
- InvoiceConfigRepository + Controller (CRUD z walidacja delegacji)
- Seed Domyslny VAT (NOT EXISTS idempotent)
- invoice-config-form.js (toggle is_delegated -> integration_id)
- confirm-delete.js (globalny modul OrderProAlerts.confirm)
- Legacy aliasy starych endpointow /settings/accounting/save|toggle|delete

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-10 22:32:29 +02:00
parent 2382018739
commit 6129042ff6
22 changed files with 1663 additions and 192 deletions

View File

@@ -5,46 +5,45 @@
See: .paul/PROJECT.md (updated 2026-05-07)
**Core value:** Sprzedawca moze obslugiwac zamowienia ze wszystkich kanalow sprzedazy i nadawac przesylki bez przelaczania sie miedzy platformami.
**Current focus:** v3.7 Invoices — Phase 113 (Fakturownia Integration Foundation) shipped; nastepna faza 114 (Receipt Config Edit Refactor + Invoice Configs CRUD) do zaplanowania
**Current focus:** v3.7 Invoices — Phase 113 + 114 shipped; nastepna faza 115 (wystawianie faktury z zamowienia) do zaplanowania
## Current Position
Milestone: v3.7 Invoices (Fakturownia integration) — In progress
Phase: 114 of TBD (Receipt Config Edit Refactor + Invoice Configs CRUD) — Not started
Phase: 115 of TBD (Wystawianie faktury z zamowienia) — Not started
Plan: pending
Status: Phase 113 complete; ready to plan Phase 114
Last activity: 2026-05-10 — UNIFY 113-01 complete, Phase 113 closed, transition done
Status: Phase 114 complete (transition done); ready to plan Phase 115
Last activity: 2026-05-10 — UNIFY 114-01 complete, Phase 114 closed, transition done
Progress:
- Milestone v3.7: [██░░░░░░░] ~15% (Phase 113 z planowanych ~5)
- Phase 113: [██████████] 100% — Complete
- Milestone v3.7: [██░░░░░░░] ~30% (Phase 113 + 114 zamkniete; planowane ~5 faz)
- Phase 114: [██████████] 100% — Complete
## Loop Position
Current loop state:
```
v3.7 milestone:
Phase 113 (Fakturownia Integration Foundation):
Plan 113-01: PLAN ✓ → APPLY ✓ → UNIFY ✓
-> Phase 113 closed (transition complete)
Phase 114 (Receipt Config Edit Refactor + Invoice Configs CRUD): not started
Phase 113 (Fakturownia Integration Foundation): Complete
Phase 114 (Accounting Configs Refactor): Complete
Phase 115 (Wystawianie faktury z zamowienia): not started
```
```
PLAN ──▶ APPLY ──▶ UNIFY
✓ ✓ ✓ [Phase 113 closed; ready for Phase 114 plan]
✓ ✓ ✓ [Phase 114 closed; ready for Phase 115 plan]
```
## Session Continuity
Last session: 2026-05-10
Stopped at: Phase 113 transition complete (PROJECT.md/ROADMAP.md updated, SUMMARY zapisany)
Next action: /paul:plan dla Phase 114 (Receipt Config Edit Refactor + Invoice Configs CRUD)
Resume file: .paul/phases/113-fakturownia-integration/113-01-SUMMARY.md
Stopped at: Phase 114 transition complete (PROJECT.md + ROADMAP.md updated, SUMMARY zapisany)
Next action: /paul:plan dla Phase 115 (wystawianie faktury z zamowienia, lokalna numeracja + delegacja Fakturownia)
Resume file: .paul/phases/114-accounting-configs-refactor/114-01-SUMMARY.md
## Git State
Last commit: (pending — feat(113): fakturownia integration foundation)
Last commit: 2382018 feat(113): fakturownia integration foundation
Branch: main
Feature branches merged: none