Skip to content

GST e-invoice: add deterministic export fixture #44

Open

Description

@sridharkalaibala

Parent issue: #29

Goal

Create one deterministic e-invoice export fixture so maintainers can review the exact JSON/CSV shape before any live connector work.

Suggested files to inspect

  • api/src/services/
  • api/tests/unit/
  • Existing export/report tests

Acceptance criteria

  • A synthetic sale can be converted into a deterministic export payload.
  • The same fixture produces byte-for-byte stable output across repeated test runs, aside from explicitly fixed timestamps.
  • The export includes seller, buyer, document, item, tax, totals, and place-of-supply fields from the accepted design.
  • The export test asserts the full output shape, not only that a file exists.
  • The implementation does not make network requests or store credentials.
  • Existing invoice print/export behavior remains unchanged.

Validation

  • Run the focused export fixture test.
  • Run relevant API unit tests for invoice/tax/export behavior.

Out of scope

  • Live government submission.
  • QR/IRN generation.
  • UI changes unless separately scoped.

Activity

  1. added
    enhancement
    help wanted
    area: tax
    needs evidence
    size: medium
    on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: taxenhancementhelp wantedneeds evidencesize: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions