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
2382018739
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 >
2026-05-10 22:11:55 +02:00
782a291210
feat(112): re-import data protection — delta-only re-import + project_generated preservation
...
Phase 112 / Plan 112-01 complete (v3.6):
- OrderImportRepository::upsertOrderAggregate split into create vs re-import paths
- replaceAddresses/Items/Notes/Shipments/StatusHistory invoked only on first import
- new updateOrderDelta() narrows UPDATE to status_code (cond.), payment_status,
total_paid, is_canceled_by_buyer, source_updated_at, payload_json, fetched_at
- source-side cancellation override (is_canceled_by_buyer=1 OR pull status_code='anulowane')
- identical-payload no-op guard via normalizePayloadJson()
- fixes case #882 : order_items.id stable, project_generated (Phase 97) preserved
- Phase 111 payment.status_changed emit retained without regression
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-07 23:22:37 +02:00
5cf531d718
feat(111): payment transition event for Allegro+shopPRO re-import
...
Re-import zamowienia wykrywa tranzycje payment_status 0/1->2 i emituje
payment.status_changed, dzieki czemu chain reguly automatyzacji #7 zmienia
status na w_realizacji.
- OrderImportRepository: rozdzielenie paymentTransition (event 0/1->2) i
statusOverwriteAllowed (preservacja status_code z Phase 62)
- AllegroOrderImportService + ShopproOrdersSyncService: emit
payment.status_changed na re-imporcie (gate !wasCreated && wasPaymentTransition)
- bin/backfill_payment_transition_111.php: jednorazowy CLI dla zamowien
payment_status=2 && status_code='nieoplacone' (Allegro + shopPRO)
- Naprawa luki znalezionej w analizie zamowienia #864
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-05 23:35:14 +02:00
0b4ffb7146
feat(110): statistics summary
...
Phase 110 complete:
- add Statistics -> Podsumowanie page
- add monthly order count and value charts per integration plus total
- use Chart.js with table fallback and 04-2026 default history start
- update PAUL and DOCS technical documentation
2026-04-28 22:48:31 +02:00
1156ce046c
upadte
2026-04-28 22:17:25 +02:00
6d3dba89ed
feat(109): checkbox multiselect filters
...
Phase 109 complete:
- Add checkbox dropdown enhancement for statistics multi-select filters
- Preserve GET contract for channels[] and status_groups[]
- Update PAUL plan context to read .paul/codebase docs
Co-Authored-By: Codex <noreply@openai.com >
2026-04-28 22:15:04 +02:00
f5c5201a2f
chore: move TODO to .paul/codebase/todo.md
2026-04-26 21:55:32 +02:00
ca7540d374
chore: rename codebase map files to lowercase
2026-04-26 21:41:04 +02:00
b1b2cc5827
chore: generate codebase map in .paul/codebase/
...
INDEX, STACK, ARCHITECTURE, CONVENTIONS, TESTING, INTEGRATIONS, CONCERNS
2026-04-26 21:39:12 +02:00
2d4b52adfc
feat(04-schema-docs): annotate ensure_* compensating migrations and update DB_SCHEMA.md
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-13 10:15:58 +01:00
7b29fd9e02
feat(03-tech-debt): standardize CSRF field name to _token
...
Phase 3 complete:
- Zmieniono _csrf_token -> _token w OrdersController (1x), ShipmentController (2x)
- Zmieniono name="_csrf_token" -> name="_token" w orders/show.php (1x), shipments/prepare.php (2x)
- Usunięto concern z .paul/codebase/CONCERNS.md
Co-Authored-By: Claude <noreply@anthropic.com >
2026-03-13 00:58:59 +01:00
87203c4321
fix(02-bug-fixes): fix 3 known bugs from CONCERNS.md
...
Phase 02 plans 02-01, 02-02, 02-03:
- fix(02-01): dead condition in AllegroShipmentService ZPL page size
Both ternary branches returned 'A6'; ZPL now correctly returns 'ZPL'
- fix(02-02): add last_status_checked_at cursor to AllegroStatusSyncService
New migration adds orders.last_status_checked_at DATETIME NULL with
composite index (source, source_updated_at). findOrdersNeedingStatusSync()
filters by cursor; markOrderStatusChecked() records timestamp on success.
- fix(02-03): replace AllegroOrderSyncStateRepository in ShopproOrdersSyncService
New ShopproOrderSyncStateRepository (same table, correct class name).
Application.php wires correct repository to correct service.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-13 00:26:07 +01:00
f8db8c0162
refactor(01-tech-debt): extract AllegroTokenManager and StringHelper
...
Phase 1 complete (2/2 plans):
- Plan 01-01: Extract AllegroTokenManager — OAuth token logic
centralized from 4 classes into dedicated manager class
- Plan 01-02: Extract StringHelper — nullableString/normalizeDateTime/
normalizeColorHex extracted from 15+ classes into App\Core\Support\StringHelper;
removed 19 duplicate private methods
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-12 23:36:06 +01:00
4c3daf69b7
docs: add codebase map to .paul/codebase/
...
Auto-generated by paul:map-codebase — 4 parallel analysis agents.
Covers stack, architecture, conventions, and concerns.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-12 21:42:24 +01:00