Files
orderPRO/.paul/STATE.md
Jacek Pyziak 6129042ff6 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>
2026-05-10 22:32:29 +02:00

83 lines
3.2 KiB
Markdown

# Project State
## Project Reference
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 + 114 shipped; nastepna faza 115 (wystawianie faktury z zamowienia) do zaplanowania
## Current Position
Milestone: v3.7 Invoices (Fakturownia integration) — In progress
Phase: 115 of TBD (Wystawianie faktury z zamowienia) — Not started
Plan: pending
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: [███░░░░░░░] ~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): Complete
Phase 114 (Accounting Configs Refactor): Complete
Phase 115 (Wystawianie faktury z zamowienia): not started
```
```
PLAN ──▶ APPLY ──▶ UNIFY
✓ ✓ ✓ [Phase 114 closed; ready for Phase 115 plan]
```
## Session Continuity
Last session: 2026-05-10
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: 2382018 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)
- Recznie odtworzyc istniejace reguly automatyzacji z grupowymi kluczami (BREAKING z 108-02)
## Deferred to Next Milestones
- Phase 68 - Code Deduplication Refactor (0/2 Planning, nigdy nie rozpoczety)
- STAT-NET - netto shopPRO z API lub z `order_items.tax_rate` (`.paul/TODO.md`)
- Mobile Orders List / Mobile Order Details / Mobile Settings (TBD z poprzedniego roadmapu)
- sonar-scanner - skan dla phase 105, 106, 107, 108 nie zostal uruchomiony (skill gap odnotowany)
- INDEX-106-01 - indeksy DB dla query `customer_returned_count`: `order_addresses(order_id, address_type)`, `shipment_packages(order_id, delivery_status)` (gdy dataset >50k wierszy)
## Skill Audit (Phase 108)
| Expected | Invoked | Notes |
|----------|---------|-------|
| sonar-scanner (required) | o | Wymagany po APPLY 108-01 i 108-02 - odlozony |
## Skill Audit (Phase 110)
| Expected | Invoked | Notes |
|----------|---------|-------|
| sonar-scanner (required) | yes | Skan uruchomiony po APPLY; raport wyslany do SonarQube. |
## Phase 110 Notes
- Local HTTP verification blocked by MySQL/XAMPP connection refused.
- PHPUnit not run: `composer` unavailable in PATH and `vendor/` absent.
- Sonar issue import to `DOCS/todo.md` not performed because SonarQube MCP/resources are unavailable in this session.