ifixkart-admin/docs/billing/online-billing.md
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

604 B

Online Invoicing Architecture

Overview

Online invoices are automatically generated upon successful order confirmation via InvoiceRouter.py and Celery workers.


Workflow

  1. Order reaches status ORDER_CONFIRMED.
  2. An Outbox event ORDER_CONFIRMED is picked up by InvoiceWorker.
  3. Worker fetches order details, calculates GST, and allocates invoice number from range pool.
  4. Worker generates PDF using HTML/WeasyPrint template.
  5. PDF saved to object storage (/uploads/invoices/) and pdf_path updated in MySQL.
  6. Email notification with PDF attachment dispatched to customer.