- Added new schemas for FA line items in the backend, including creation, update, and response DTOs. - Updated existing line item schemas to include FA data. - Modified database models to reflect new table names for line quantities and references. - Enhanced ItemService to handle FA data during item creation and updates. - Introduced new routes and service layer for FA line items, including CRUD operations. - Updated frontend components to support FA line item data, including new fields and UI adjustments. - Implemented data flattening for improved item display in the dashboard.
19 lines
552 B
Python
19 lines
552 B
Python
"""
|
|
Router principal del módulo A24 (SCAF - Sistema de Control de Activo Fijo)
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
# Importar routers de submódulos
|
|
from .fa.fa_classes.routes import router as fa_classes_router
|
|
from .fa.fa_item_lines.routes import router as fa_item_lines_router
|
|
|
|
# Router principal de A24
|
|
router = APIRouter()
|
|
|
|
# Registrar routers de FA (Fixed Assets)
|
|
router.include_router(fa_classes_router, prefix="/a24", tags=["a24 / fa / classes"])
|
|
router.include_router(
|
|
fa_item_lines_router, prefix="/a24", tags=["a24 / fa / item-lines"]
|
|
)
|