- 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
604 B
604 B
Online Invoicing Architecture
Overview
Online invoices are automatically generated upon successful order confirmation via InvoiceRouter.py and Celery workers.
Workflow
- Order reaches status
ORDER_CONFIRMED. - An Outbox event
ORDER_CONFIRMEDis picked up byInvoiceWorker. - Worker fetches order details, calculates GST, and allocates invoice number from range pool.
- Worker generates PDF using HTML/WeasyPrint template.
- PDF saved to object storage (
/uploads/invoices/) andpdf_pathupdated in MySQL. - Email notification with PDF attachment dispatched to customer.