P0: AssetCost API & Schema Synchronization (B2B Vendor + Invoice Dates) #276
Notifications
Total Time Spent: 1 minute
kincses
1 minute
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#276
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ő: P0 - API & Schema Synchronization
Cél: AssetCost API réteg (Pydantic sémák + FastAPI végpontok) szinkronizálása a kibővített adatbázis sémával (B2B vendor management + invoice/fulfillment dates).
🔗 Függőségek (Dependencies)
📝 Elemzés
A Pydantic sémák (AssetCostBase, AssetCostCreate, AssetCostResponse) frissítve lettek 4 új mezővel: vendor_organization_id, external_vendor_name, invoice_date, fulfillment_date. A GET /{asset_id} végpont kibővítve Organization outer join-nel a vendor name enrichment-hez. A POST / végpont átadja az új mezőket az AssetCost konstruktornak. Javítva a Pydantic v2 'date' mező névütközés (átnevezve cost_date-re, lambda default_factory-val).
▶️ Munka megkezdve: 2026-06-22 00:40:45
✅ Munka befejezve: 2026-06-22 00:42:17
Technikai Összefoglaló:
P0: AssetCost API & Schema Synchronization completed. Updated Pydantic schemas (AssetCostBase, AssetCostCreate, AssetCostResponse) with 4 new B2B fields (vendor_organization_id, external_vendor_name, invoice_date, fulfillment_date). Fixed Pydantic v2 'date' field naming conflict (renamed to cost_date). Updated GET /{asset_id} with Organization outer join for vendor name enrichment. Updated POST / to pass new fields. Sync Engine: 1210 OK, 0 errors.
⏱️ Az idő rögzítve.