- New models: WarrantyModel, WalletModel, SystemConfigModel - New schemas: WarrantySchema, RefundSchema, SystemConfig, CrmTaskCalendar, NotificationTemplate, NotificationGateway, RepairErp, ReviewModeration, InventoryPos, MultiDashboard, BillingFinance - New services: WarrantyService, RefundService, CrmService, CrmTaskCalendarService, DeliveryService, EmailTemplateService, InventoryPosService, MultiDashboardService, NotificationGatewayService, RepairErpService, ReviewModerationService, SystemConfigService, TemplateService, CreditService - Updated routers: AdminOrder, BillingFinance, Cart, Catalog, Checkout, Crm, InventoryPos, NotificationGateway, RolePermission, ServiceJob, Settings, Storefront, UserCreation - Updated models: Inventory, Notification, Order, Product, Service, Setting, SystemConfig, User - Updated core: database init, invoice generator, main app - Added WarrantyRouter with full CRUD and claim flow
9 lines
286 B
Python
9 lines
286 B
Python
import app.models.db_base
|
|
from app.core.database.db_session import SessionLocal
|
|
from app.services.InventoryPosService import InventoryPosService
|
|
|
|
db = SessionLocal()
|
|
svc = InventoryPosService(db)
|
|
terms = svc.list_terminals(None)
|
|
for t in terms:
|
|
print(t.terminal_id, t.code, t.name)
|