ifixkart-backend/test_quote.py
adithiyan 10bfba7d58 feat: add warranties, refunds, notifications, CRM calendar, system config & delivery modules
- 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
2026-10-13 22:05:16 +05:30

24 lines
527 B
Python

import requests
payload = {
"quote_number": "SQ-2026-999",
"customer_name": "Test Cust",
"customer_phone": "9999999999",
"customer_email": "test@example.com",
"subtotal": 1000,
"tax_amount": 180,
"final_amount": 1180,
"items": [
{
"sku": "TEST-SKU",
"description": "Test Item",
"quantity": 1,
"unit_price": 1000,
"tax_percent": 18
}
]
}
res = requests.post("http://localhost:8000/api/v1/billing-finance/quotations", json=payload)
print(res.status_code)
print(res.text)