fix: naprawiono crash przy składaniu zamówienia z kuponem rabatowym

Fatal Error: Call to undefined method stdClass::is_one_time() w OrderRepository:793.
Zamieniono wywołania nieistniejących metod na stdClass na dostęp do właściwości
+ istniejącą metodę CouponRepository::markAsUsed().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jacek
2026-03-15 14:04:18 +01:00
parent a606d603e2
commit a45256e9f6
7 changed files with 252 additions and 24 deletions

View File

@@ -5,54 +5,52 @@
See: .paul/PROJECT.md (updated 2026-03-12)
**Core value:** Właściciel sklepu ma pełną kontrolę nad sprzedażą online w jednym systemie pisanym od podstaw, bez narzutów zewnętrznych platform.
**Current focus:** Projekt zainicjalizowany — gotowy do planowania
**Current focus:** Hotfix coupon crash — COMPLETE
## Current Position
Milestone: Tech debt — Integrations refactoring
Phase: 6 of ? — IntegrationsRepository split — Complete
Plan: 06-02 complete (phase done)
Status: UNIFY complete, phase 6 finished
Last activity: 2026-03-12 — 06-02 UNIFY complete
Note: Previous milestone (Security hardening) — fazy 4 i 5 UNIFY zakończone.
Milestone Security hardening: COMPLETE.
Milestone: Hotfix — coupon order crash
Phase: 7 — Fix coupon stdClass method call crash — Complete
Plan: 07-01 complete (phase done)
Status: UNIFY complete, phase 7 finished
Last activity: 2026-03-15 — 07-01 UNIFY complete
Progress:
- Milestone (Security hardening): [██████████] 100% (COMPLETE)
- Phase 6: [██████████] 100% (complete)
- Phase 7: [██████████] 100% (COMPLETE)
## Loop Position
Current loop state (phase 6, plan 02):
Current loop state (phase 7, plan 01):
```
PLAN ──▶ APPLY ──▶ UNIFY
✓ ✓ ✓ [Phase 6 complete]
✓ ✓ ✓ [Phase 7 complete]
```
Deferred (previous milestone — now closed):
Previous phases:
```
Phase 4: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-12]
Phase 5: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-12]
Phase 6: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-12]
Phase 7: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-15]
```
## Accumulated Context
### Decisions
None yet.
- Use existing `CouponRepository::markAsUsed()` instead of adding methods to stdClass
### Deferred Issues
None yet.
None.
### Blockers/Concerns
None yet.
None.
## Session Continuity
Last session: 2026-03-12
Stopped at: Phase 04 UNIFY complete — wszystkie odroczone pętle zamknięte
Next action: /paul:progress — wybierz kolejny task lub milestone
Resume file: .paul/phases/04-csrf-protection/04-01-SUMMARY.md
Last session: 2026-03-15
Stopped at: Phase 07 UNIFY complete — hotfix loop closed
Next action: Deploy fix to production, then /paul:progress for next work
Resume file: .paul/phases/07-coupon-bugfix/07-01-SUMMARY.md
---
*STATE.md — Updated after every significant action*