- 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
11 lines
373 B
Python
11 lines
373 B
Python
import sys
|
|
import os
|
|
sys.path.append(os.path.dirname(os.path.abspath(__name__)))
|
|
from app.core.database.db_session import SessionLocal
|
|
from app.models.EcomCustomerModel import EcomCustomer
|
|
db = SessionLocal()
|
|
c = db.query(EcomCustomer).filter(EcomCustomer.phone == "9080323589").first()
|
|
if c:
|
|
print(f"Customer email: '{c.email}'")
|
|
else:
|
|
print("Customer not found")
|