Invoicing
Overview
Invoices, credit notes, tax components, and payment records. GST-shaped fields exist on the tenant and finance schemas.
Code map
| Piece | Path |
|---|---|
| Feature | src/modules/finance/invoice |
| Schema | 50-finance.prisma |
Entities: Invoice, InvoiceItem, CreditNote, CreditNoteItem, tax component tables, Payment, PaymentMethod, TaxRate, OrderPaymentTransaction, RefundTransaction.
Enums of note: EInvoiceStatus, SupplyType, TaxDocumentType. GstTurnoverSlab is on the tenant schema.
Business rules
Unknown: whether e-invoice IRN generation calls an external GST network. No GSTN client was identified under src/integrations. EInvoiceStatus existing does not mean IRN is in scope.
API surface
/finance/invoice. OpenAPI for fields.
Events and queues
No dedicated invoice outbox type was in the producer list that was scanned. Do not assume invoice issue emits order.status.changed.