Summary
Neither CreditNote nor OrganizationInvoice has a reportedInGstr1 flag. When a GSTR-1 builder is eventually built (#1361), there is no way to track which invoices/credit notes have already been exported, risking double-reporting across months.
Priority: P2 MEDIUM
What Exists
TDSRecord.reportedInForm26Q — pattern exists for TDS
CreditNote — no reporting flag
OrganizationInvoice — no reporting flag
What's Missing
CreditNote.reportedInGstr1 Boolean @default(false)
OrganizationInvoice.reportedInGstr1 Boolean @default(false)
CreditNote.reportedInGstr3b Boolean @default(false) (for future GSTR-3B builder)
OrganizationInvoice.reportedInGstr3b Boolean @default(false)
Impact
- Double-reporting risk — GSTR-1 export could include the same invoice in multiple months
- Audit trail gap — no record of which invoices have been reported
Fix
- Add
reportedInGstr1 Boolean @default(false) to both models
- Add
reportedInGstr3b Boolean @default(false) to both models
- Stamp flags after GSTR-1/GSTR-3B export
- Add composite index for efficient filtering
Related: Part of Organizational Finance Deep Dive (2026-09-03). See bugs/financial-audit/10-org-finance-deep-dive.md. Pairs with #1361.
Summary
Neither
CreditNotenorOrganizationInvoicehas areportedInGstr1flag. When a GSTR-1 builder is eventually built (#1361), there is no way to track which invoices/credit notes have already been exported, risking double-reporting across months.Priority: P2 MEDIUM
What Exists
TDSRecord.reportedInForm26Q— pattern exists for TDSCreditNote— no reporting flagOrganizationInvoice— no reporting flagWhat's Missing
CreditNote.reportedInGstr1 Boolean @default(false)OrganizationInvoice.reportedInGstr1 Boolean @default(false)CreditNote.reportedInGstr3b Boolean @default(false)(for future GSTR-3B builder)OrganizationInvoice.reportedInGstr3b Boolean @default(false)Impact
Fix
reportedInGstr1 Boolean @default(false)to both modelsreportedInGstr3b Boolean @default(false)to both modelsRelated: Part of Organizational Finance Deep Dive (2026-09-03). See
bugs/financial-audit/10-org-finance-deep-dive.md. Pairs with #1361.