[P0] Fix: Maradek cost_date hiba expenses.py line 533 #281

Closed
opened 2026-06-23 15:04:46 +02:00 by kincses · 2 comments
Owner

Merfoldko: Koltseg rogzites (Expense Tracking)

Cel: A #278-as javitas hianyos volt - a response dict-ben (line 533) az SQLAlchemy AssetCost modellen -et erunk el, de a mezo neve Tue Jun 23 01:04:45 PM UTC 2026. Ez 500-as hibat okoz.

🔗 Fuggosegek (Dependencies)

  • Bemenet: backend/app/models/fleet_finance/models.py (AssetCost.date oszlop), backend/app/schemas/asset_cost.py (validation_alias)
  • Kimenet: Dashboard gyors koltseg gomb, CostEntryWizard, FinancialsTab, CostsView

📝 Elemzés

A #278-as javitas a konstruktort javitotta (line 464: cost_date= -> date=), de a response dict line 533-at kihagyta. new_cost SQLAlchemy AssetCost peldany, aminek a helyes attributuma, nem . A hiba uzenet: AssetCost object has no attribute cost_date

**Merfoldko:** Koltseg rogzites (Expense Tracking) **Cel:** A #278-as javitas hianyos volt - a response dict-ben (line 533) az SQLAlchemy AssetCost modellen -et erunk el, de a mezo neve Tue Jun 23 01:04:45 PM UTC 2026. Ez 500-as hibat okoz. ### 🔗 Fuggosegek (Dependencies) - **Bemenet:** backend/app/models/fleet_finance/models.py (AssetCost.date oszlop), backend/app/schemas/asset_cost.py (validation_alias) - **Kimenet:** Dashboard gyors koltseg gomb, CostEntryWizard, FinancialsTab, CostsView ### 📝 Elemzés A #278-as javitas a konstruktort javitotta (line 464: cost_date= -> date=), de a response dict line 533-at kihagyta. new_cost SQLAlchemy AssetCost peldany, aminek a helyes attributuma, nem . A hiba uzenet: AssetCost object has no attribute cost_date
kincses added the Type: BugStatus: In Progress labels 2026-06-23 15:04:58 +02:00
kincses started working 2026-06-23 15:04:58 +02:00
Author
Owner

▶️ Munka megkezdve: 2026-06-23 15:04:58

▶️ **Munka megkezdve:** 2026-06-23 15:04:58
kincses added Status: Done and removed Status: In Progress labels 2026-06-23 15:08:00 +02:00
kincses worked for 3 minutes 2026-06-23 15:08:00 +02:00
Author
Owner

Munka befejezve: 2026-06-23 15:07:59

Technikai Összefoglaló:
Fix: expenses.py:533 - new_cost.cost_date -> new_cost.date. A #278-as javitas hianyos volt: a konstruktort javitottuk (line 464) de a response dict-et (line 533) kihagytuk. new_cost SQLAlchemy AssetCost peldany, aminek .date a helyes attributuma. POST /api/v1/expenses/ teszt: 201 Created, sikeres koltseg rogzites a QWE432-re.

⏱️ Az idő rögzítve.

✅ **Munka befejezve:** 2026-06-23 15:07:59 **Technikai Összefoglaló:** Fix: expenses.py:533 - new_cost.cost_date -> new_cost.date. A #278-as javitas hianyos volt: a konstruktort javitottuk (line 464) de a response dict-et (line 533) kihagytuk. new_cost SQLAlchemy AssetCost peldany, aminek .date a helyes attributuma. POST /api/v1/expenses/ teszt: 201 Created, sikeres koltseg rogzites a QWE432-re. ⏱️ *Az idő rögzítve.*
Sign in to join this conversation.