- 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.
28 lines
753 B
Python
28 lines
753 B
Python
"""
|
|
Billing Frontend Views
|
|
Serves HTML pages for billing features
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
from fastapi.responses import FileResponse
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/billing/supplier-invoices")
|
|
async def supplier_invoices_page():
|
|
"""Supplier invoices (kassekladde) page"""
|
|
return FileResponse("app/billing/frontend/supplier_invoices.html")
|
|
|
|
|
|
@router.get("/billing/template-builder")
|
|
async def template_builder_page():
|
|
"""Template builder for supplier invoice extraction"""
|
|
return FileResponse("app/billing/frontend/template_builder.html")
|
|
|
|
|
|
@router.get("/billing/templates")
|
|
async def templates_list_page():
|
|
"""Templates list and management page"""
|
|
return FileResponse("app/billing/frontend/templates_list.html")
|