- Added FastAPI views for supplier invoices in the billing frontend. - Created EconomicService for handling e-conomic API interactions, including safety modes for read-only and dry-run operations. - Developed database migration for supplier invoices, including tables for invoices, line items, and settings. - Documented kassekladde module features, architecture, API endpoints, and usage guide in KASSEKLADDE.md. - Implemented views for overdue invoices and pending e-conomic sync.
25 lines
564 B
Python
25 lines
564 B
Python
"""
|
|
Billing Router
|
|
API endpoints for billing operations
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
from . import supplier_invoices
|
|
|
|
router = APIRouter()
|
|
|
|
# Include supplier invoices router
|
|
router.include_router(supplier_invoices.router, prefix="", tags=["Supplier Invoices"])
|
|
|
|
|
|
@router.get("/billing/invoices")
|
|
async def list_invoices():
|
|
"""List all invoices"""
|
|
return {"message": "Billing integration coming soon"}
|
|
|
|
|
|
@router.post("/billing/sync")
|
|
async def sync_to_economic():
|
|
"""Sync data to e-conomic"""
|
|
return {"message": "e-conomic sync coming soon"}
|