Technical

Indian GST in ERPNext with India Compliance: A Setup Guide

How to set up Indian GST in ERPNext with the India Compliance app: GSTIN, GST accounts, tax templates, HSN codes, e-invoicing, e-way bills, and the GSTR-1 and GSTR-3B reports.

Kalvyai Engineering · · 9 min read

Indian GST in ERPNext with India Compliance: A Setup Guide (cover)
On this page

Most GST problems in ERPNext are setup problems. Examples include a wrong GSTIN on an address, a tax template applied to the wrong tax category, or an item without an HSN code. Each one shows up later as a rejected e-invoice or a GSTR-1 that does not match your books.

This guide walks through the setup we use on Indian ERPNext projects with the India Compliance app. It covers GSTIN and addresses, GST accounts, tax templates, HSN codes, e-invoicing, e-way bills, and the GSTR-1 and GSTR-3B reports.

One note before you start: GST rules, thresholds and rates change. Where this post depends on a current legal number, it is marked for you to confirm with your tax advisor.

What the India Compliance app adds

ERPNext core is country-neutral. Indian GST support lives in a separate Frappe app, India Compliance. Once installed, it adds:

  • GSTIN and GST Category fields on companies, addresses, customers and suppliers, with GSTIN format validation
  • GST Settings, where you map your GST accounts and turn on API features
  • Place-of-supply logic, so transactions pick CGST + SGST or IGST
  • HSN/SAC code fields and validation on items
  • E-invoice (IRN) and e-way bill generation through the government APIs
  • GST reports, including GSTR-1 and GSTR-3B

The API-based features (e-invoice, e-way bill and GSTIN lookups) need API access configured in GST Settings. Check the current terms and pricing for that access on the India Compliance website before you go live.

Install the app

Use the branch that matches your Frappe/ERPNext major version. On a self-hosted bench:

Bash
cd ~/frappe-bench
bench get-app https://github.com/resilient-tech/india-compliance --branch version-15
bench --site yoursite.example.com install-app india_compliance
bench --site yoursite.example.com migrate
bench restart

Replace version-15 with your version. On Frappe Cloud, add the app from the site's app list instead.

Install it on a staging copy of your site first. If you already have transactions, the app adds fields to existing doctypes, and you will want to check old records before going live.

Step 1: Company, GSTIN and addresses

In India Compliance, GSTIN lives mainly on the Address, not just the Company or Customer. One company can have several registrations, one per state, and each one has its own address and GSTIN.

  1. Open your Company and confirm the country is India.
  2. Create one Address per GST registration, linked to the Company.
  3. On each address, set the GSTIN, GST Category (for example Registered Regular) and State.
  4. Mark the right address as the company address on transactions, or set defaults per branch.

The state on the address drives place of supply. If the company address and the customer billing address are in the same state, the transaction is intra-state (CGST + SGST). If they differ, it is inter-state (IGST). A wrong state on an address means wrong tax on every invoice that uses it.

Step 2: GST accounts and GST Settings

You need separate ledger accounts for each GST component, for both output and input tax. A typical set is:

  • Output Tax CGST, Output Tax SGST, Output Tax IGST
  • Input Tax CGST, Input Tax SGST, Input Tax IGST
  • Accounts for reverse charge and cess if they apply to you

The app may create default accounts during setup. Check your chart of accounts before creating duplicates.

Then open GST Settings:

  1. In the GST Accounts table, add a row per company and account type, mapping CGST, SGST, IGST and cess accounts.
  2. Review the validation options, such as HSN code requirements, and enable what applies to you.
  3. Leave e-invoice and e-way bill options off until Steps 3 to 5 are done and tested.

The account mapping matters because the reports read it. If an account is used on invoices but not mapped in GST Settings, its tax will not appear in GSTR-1 or GSTR-3B.

Step 3: Tax templates and tax categories

ERPNext picks taxes through Tax Categories and Sales/Purchase Taxes and Charges Templates. India Compliance sets the tax category on a transaction from the addresses involved. The template linked to that category then fills the tax table.

A common layout:

Tax Category

Sales template rows

In-State

CGST + SGST

Out-State

IGST

Reverse Charge In-State

CGST + SGST (reverse charge)

Reverse Charge Out-State

IGST (reverse charge)

Create matching purchase templates using the input tax accounts.

Keep the rate on the template rows simple. In most setups, the actual rate comes from the Item Tax Template on each item, covered in the next step. The sales template only decides which components apply. This avoids one template per rate per state combination.

Test it:

  1. Create a draft Sales Invoice to a customer in your own state and confirm CGST + SGST.
  2. Create one to a customer in another state and confirm IGST.
  3. Create one to an SEZ or overseas customer and confirm the result matches your treatment for zero-rated supplies, with or without payment of tax.

Step 4: HSN/SAC codes and item tax templates

Every item needs an HSN code (goods) or SAC code (services). The code is printed on invoices, sent in e-invoices and summarised in GSTR-1. The minimum number of HSN digits you must report depends on your turnover: 4 digits if your aggregate turnover in the previous financial year was up to ₹5 crore, and 6 digits above that.

For each item:

  1. Set the HSN/SAC field on the Item.
  2. Add an Item Tax Template row with the GST rate for that item, such as a template for 18% GST.
  3. If the rate differs for intra-state and inter-state, add both rows with the matching tax category.

Rates for many goods have been revised. Confirm the current rate for each HSN in your catalogue with your advisor rather than copying old templates.

To find items missing an HSN code before go-live, run this in bench --site yoursite.example.com console:

Python
missing = frappe.get_all(
    "Item",
    filters={"disabled": 0, "gst_hsn_code": ["is", "not set"]},
    pluck="name",
)
print(len(missing))
print(missing[:50])

Fix these in bulk with Data Import (export, fill the HSN column, re-import) rather than one by one.

Step 5: Customers and suppliers

Each party needs a correct GST Category and, if registered, a GSTIN on their billing address.

  • Registered Regular: GSTIN required. Invoices go to B2B in GSTR-1.
  • Unregistered: no GSTIN. Invoices go to B2C sections.
  • SEZ, Overseas, Deemed Export: these change tax treatment and e-invoice type.
  • Registered Composition, UIN Holders and others: set them where they apply.

With API access enabled, you can enter a GSTIN and let the app fetch the legal name and address. This reduces typing errors on new parties.

To find registered customers with no GSTIN:

Python
bad = frappe.get_all(
    "Customer",
    filters={"gst_category": "Registered Regular", "gstin": ["is", "not set"]},
    pluck="name",
)
print(bad)

Run the same check on Supplier and on Address. A B2B invoice with a missing customer GSTIN cannot get an IRN and lands in the wrong GSTR-1 section.

E-invoicing

If your aggregate turnover is above the e-invoicing threshold (₹5 crore of aggregate turnover in any financial year from 2017-18, at the time of writing), B2B invoices, exports and some other supplies must be registered on the Invoice Registration Portal (IRP). The IRP returns an IRN and a signed QR code, which must appear on the printed invoice.

Setting it up

  1. In GST Settings, configure API access and enable e-invoicing.
  2. Set the date from which e-invoicing applies, so older invoices are not sent.
  3. Choose whether to generate the e-invoice automatically on submit or manually from a button on the Sales Invoice.
  4. Use a print format that shows the IRN and QR code.
  5. Test in sandbox mode (the Sandbox Mode option in GST Settings, if your version offers it) before switching to production.

Day-to-day behaviour

  • On submit (or on clicking generate), the app sends the invoice to the IRP and stores the IRN, acknowledgement number and QR code on the invoice.
  • If the IRP rejects it, the error is shown on the invoice. The usual causes are a missing HSN, an invalid GSTIN, a wrong pincode or state, or rounding differences.
  • Cancelling an e-invoice on the IRP is only allowed within a limited window after generation (24 hours). After that, you correct the invoice with a credit note, not a cancellation.
  • Credit notes and debit notes also get IRNs.

Decide who on your team handles rejected e-invoices, and check daily for submitted invoices without an IRN.

E-way bills

An e-way bill is needed when goods above the value threshold move (generally a consignment value above ₹50,000, with some states setting their own rules for movement within the state). India Compliance can generate e-way bills from a Sales Invoice, and from other documents depending on your version.

What you need on the document

  • Transporter (with transporter GSTIN/ID) or own vehicle
  • Mode of transport and vehicle number (Part B)
  • Approximate distance in km
  • Correct dispatch and shipping addresses with pincodes

When e-invoicing is on, the e-way bill can be generated along with or after the IRN using the same invoice data. If the vehicle changes in transit, update Part B from the document rather than creating a new e-way bill.

A practical tip: add transport fields to your sales invoice workflow, so the dispatch team fills them before submit. Most e-way bill failures we see come from a missing vehicle number or distance.

GSTR-1 and GSTR-3B

Both reports are built from submitted transactions, the tax accounts mapped in GST Settings, and the GST category on each party.

GSTR-1

GSTR-1 reports outward supplies, split into sections such as B2B, B2C Large, B2C Small, exports, credit/debit notes, and an HSN summary. In India Compliance, you select the company, GSTIN and period. You then review each section and export data for upload to the GST portal.

Before filing:

  1. Confirm every submitted Sales Invoice for the period is included and no draft invoices are left.
  2. Check that the B2B total matches the sum of e-invoices for the period.
  3. Review the HSN summary for items with blank or obviously wrong codes.
  4. Make sure credit notes are linked to the original invoices.

GSTR-3B

GSTR-3B is the monthly summary return: outward tax liability, eligible input tax credit (ITC) and tax payable. The app's GSTR-3B report builds these figures from your sales and purchase transactions.

The ITC side depends on purchase data quality. Purchase invoices need the supplier GSTIN, the bill number and date, and correct ITC eligibility. India Compliance also includes a purchase reconciliation tool to compare your purchase register with GSTR-2A/2B data downloaded through the API. Reconcile before you claim ITC in GSTR-3B.

A monthly GST checklist

  1. List submitted Sales Invoices without an IRN where one is required. Fix and generate.
  2. List deliveries above the e-way bill threshold without an e-way bill.
  3. Run the HSN and missing-GSTIN checks above on new items and parties.
  4. Reconcile purchases against GSTR-2B.
  5. Review GSTR-1 section by section, then file.
  6. Run GSTR-3B, compare its totals with your GST ledger balances, then file.
  7. Lock the period, using accounting period closing or a frozen-till date, so nobody edits filed months.

Common mistakes

  • GSTIN only on the Customer, not the Address. Place of supply and reports read the address.
  • Tax accounts not mapped in GST Settings. Tax is posted, but it is missing from the returns.
  • One sales template per rate. This becomes unmanageable. Put rates on Item Tax Templates instead.
  • Turning on e-invoicing before cleaning master data. Every bad record becomes an IRP rejection at the counter.
  • Editing invoices after filing. Use credit or debit notes and keep filed periods locked.

How Kalvyai can help

We set up and fix GST in ERPNext for Indian businesses. That covers India Compliance installation and upgrades, tax template design, master data clean-up, e-invoice and e-way bill rollout, and reconciling GSTR-1 and GSTR-3B against the books. See our ERPNext services at https://kalvyai.com/erpnext.

If you also collect payments in ERPNext, our ready-made apps for Indian gateways are on https://store.kalvyai.com.

If your returns do not match your ledgers, or you are about to cross the e-invoicing threshold, contact us and we will review your setup.

Share this article

  • ERPNext
  • India Compliance
  • GST
  • E-Invoicing
  • E-Way Bill
  • GSTR-1
  • GSTR-3B

Kalvyai Engineering · Engineering team

The engineers who build, connect and fix business systems at Kalvyai: Odoo, ERPNext, Shopify and AI agents that work inside them with approvals, budgets and an audit trail.

Comments

No comments yet. Questions and corrections are welcome.

Rate this post or leave a comment

Your rating (optional)
Not rated

Comments appear after an editor approves them. See our privacy notice.

Read next

ERPNext Bank Reconciliation: Import, Match and Clear Transactions (cover)Technical
Kalvyai EngineeringERPNext

ERPNext Bank Reconciliation: Import, Match and Clear Transactions

A practical guide to bank reconciliation in ERPNext: setting up bank accounts, importing statements, matching Payment Entries and Journal Entries in the Bank Reconciliation Tool, and dealing with transactions that don't match.

8 min read

Newsletter

Get new guides in your inbox.

Practical notes on Odoo, ERPNext, Shopify and AI agents, written by the engineers who build them. No spam, and you can ask to stop at any time.

Prefer a feed? Subscribe by RSS. We use your email only to send new articles. See our privacy policy.