Bidirectional Service-Cost Sync Fix #262
Notifications
Total Time Spent: 8 seconds
kincses
8 seconds
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#262
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mérföldkő: 🚗 Epic 4: Asset Management & TCO
Cél: A Service Book (AssetEvent) ↔ Costs (AssetCost) kétirányú szinkronizáció javítása. A cost_id FK meglévő volt a séma szintjén, de a Cost→Event irány hiányzott.
🔗 Függőségek (Dependencies)
📝 Elemzés
A cost_id FK létezett a vehicle.asset_events táblában, de csak az Event→Cost irány működött (POST /events cost_amount > 0 esetén). A Cost→Event irány hiányzott: POST /expenses/ MAINTENANCE/REPAIR kategóriával nem hozott létre AssetEvent-et. Emellett a POST /{asset_id}/maintenance végpont dupla db.commit()-ot használt, ami FK hibákhoz vezethetett.
▶️ Munka megkezdve: 2026-06-16 01:09:27
✅ Munka befejezve: 2026-06-16 01:09:35
Technikai Összefoglaló:
Bidirectional Service-Cost Sync implemented and verified:
Fixes:
Verification:
⏱️ Az idő rögzítve.