feat(113): fakturownia integration foundation

Phase 113 complete (v3.7 Invoices):
- DB: invoices, invoice_configs, invoice_number_counters, fakturownia_integration_settings + orders.invoice_requested
- FakturowniaIntegrationRepository (multi-account via integrations.type='fakturownia')
- FakturowniaApiClient (testConnection; createInvoice/downloadPdf STUBs)
- IntegrationsRepository::updateTestResult() (reusable test-result writer)
- /settings/integrations/fakturownia (list + edit + test + delete)
- Karta Fakturownia w hubie /settings/integrations

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-10 22:11:55 +02:00
parent 322b23b7be
commit 2382018739
20 changed files with 1766 additions and 32 deletions

View File

@@ -5,51 +5,52 @@
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:** Brak aktywnego milestone - v3.6 zamkniety
**Current focus:** v3.7 Invoices — Phase 113 (Fakturownia Integration Foundation) shipped; nastepna faza 114 (Receipt Config Edit Refactor + Invoice Configs CRUD) do zaplanowania
## Current Position
Milestone: v3.6 Re-import Data Protection (hotfix) — COMPLETE
Phase: 112 of 112 (Re-import Data Protection) — COMPLETE
Plan: 112-01 — COMPLETE
Status: v3.6 shipped, oczekiwanie na nastepny milestone
Last activity: 2026-05-07Transition Phase 112 / Plan 112-01 complete (PROJECT.md + ROADMAP.md updated, git commit)
Milestone: v3.7 Invoices (Fakturownia integration) — In progress
Phase: 114 of TBD (Receipt Config Edit Refactor + Invoice Configs CRUD) — 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
Progress:
- Milestone v3.6: [##########] 100% (1/1 phases, 1/1 plans)
- Phase 112: [##########] 100%
- Milestone v3.7: [██░░░░░░░░] ~15% (Phase 113 z planowanych ~5)
- Phase 113: [██████████] 100% — Complete
## Loop Position
Current loop state:
```
v3.6 milestone:
Phase 112 (Re-import Data Protection):
Plan 112-01: PLAN ✓ → APPLY ✓ → UNIFY ✓
-> Phase 112 closed
-> v3.6 milestone closed (pending transition commit)
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
```
```
PLAN ──▶ APPLY ──▶ UNIFY
✓ ✓ ✓ [Loop complete]
✓ ✓ ✓ [Phase 113 closed; ready for Phase 114 plan]
```
## Session Continuity
Last session: 2026-05-07
Stopped at: v3.6 milestone closed (Phase 112 transitioned)
Next action: manualne testy AC-1..AC-7 na zywej bazie (XAMPP), backfill #882, nastepnie /paul:milestone (nowy milestone)
Resume file: .paul/phases/112-reimport-data-protection/112-01-SUMMARY.md
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
## Git State
Last commit: 782a291 feat(112): re-import data protection
Last commit: (pending — feat(113): fakturownia integration foundation)
Branch: main
Feature branches merged: none
## Pending Actions
- **Phase 113-01 (smoke test wykonany przez usera 2026-05-10):** OK
- Manualne testy AC-1..AC-7 dla Phase 112 na zywej bazie (XAMPP online)
- Backfill zamowienia #882 — operator robi recznie po wdrozeniu (poza zakresem planu)
- Uruchom migracje gdy XAMPP online: `php bin/migrate.php` (delivery_statuses)