Skip links
Table of Contents
    HSN SAC Code Management Software_ ERPNext Guide

    HSN SAC Code Management Software in ERPNext: A Practical Mapping Guide

    An HSN or SAC code looks like a small field on an invoice. In practice, it sits under almost every GST document your business produces.

    What does HSN SAC code management software do?

    It stores the correct HSN (goods) or SAC (services) code against each item in your master data, applies the matching GST rate through linked tax templates, prints the code on invoices and e-invoices, and rolls it up into the HSN-wise summary in GSTR-1. In ERPNext, this runs through the item master and the India Compliance app.

    This guide covers where the codes live in ERPNext, how to map them cleanly, and how to stop them drifting once you’re live.

    Why HSN/SAC Mapping Is More Than a Labelling Exercise

    Most finance teams know the digit rule. Under Notification 78/2020, businesses with aggregate annual turnover in the previous financial year of up to ₹5 crore must report at least 4-digit HSN codes on B2B invoices. Businesses above ₹5 crore must report 6 digits on all invoices.

    The digit rule is the easy part. The harder part is that one code feeds several outputs at once:

    The GST rate applied on the invoice line

    The code printed on the tax invoice and sent in the e-invoice payload

    The HSN-wise summary in GSTR-1 Table 12

    The item details on e-way bills

    If the code on an item is wrong, every one of those outputs is wrong in the same way. That’s why the error usually surfaces late, at return filing or in a mismatch your CA spots, rather than when the invoice is raised.

    What HSN SAC Code Management Software Should Do in ERPNext

    ERPNext with the India Compliance app keeps codes in a dedicated GST HSN Code master. Each item links to one code through its HSN/SAC field. Services use the same master, and SAC codes are simply the ones that begin with 99. So a separate SAC code ERP setup isn’t needed; service items just need the same attention as stock items.

    The GST HSN Code record can also hold Item Tax Templates. This is what turns HSN code mapping in ERPNext from labelling into real tax logic: when the code carries the right template, every item linked to it gets the correct rate.

    Item Groups can also hold a default HSN code in current India Compliance versions, so new items in the group start with a sensible value instead of a blank. Check this against the version you’re running.

    A Practical Approach to Mapping

    Step 1: Clean the master before you map

    Export every active item with its current code. Look for blanks, codes shorter than your required length, and identical products carrying different codes. This list is usually longer than teams expect, especially after a migration from Tally or spreadsheets.

    Step 2: Use Item Groups for defaults, items for the final value

    Set a default code on each Item Group, then confirm or override it item by item. In large catalogues, this turns a blank-field problem into a review problem, which is much faster to work through.

    Step 3: Attach tax templates to codes, not only to items

    Where the GST rate follows the classification, put the Item Tax Template on the GST HSN Code record. Then a rate change means one edit to the code, not hundreds of edits across items. Keep item-level overrides for genuine exceptions.

    Step 4: Turn on validation

    India Compliance lets you enforce HSN validation and set a minimum number of digits in GST Settings. Match it to your turnover bracket so that short or missing codes are blocked at entry, not discovered at filing.

    Step 5: Test with real transactions

    Before go-live, raise sample invoices for each major product and service category. Check the HSN-wise summary report against what your CA expects for GSTR-1, and generate a test e-invoice. The e-invoice portal validates HSN codes, so an invalid code gets rejected there rather than slipping through.

    If you aren’t sure your current item master would pass Step 1, that’s usually the right place to start a review.

    Keeping Codes Accurate After Go-Live

    Decide who owns HSN changes

    In the ERPNext setups we audit or take over, loosely governed GST masters are a common root cause of return problems. The usual failure isn't a wrong initial mapping. It's uncontrolled edits: a purchase user creates an item with a guessed code, or someone changes a code to get an invoice to submit.Limit edit rights on the HSN field and the GST HSN Code master to a small group, usually finance plus one named compliance owner. Use ERPNext's role permissions for this rather than relying on a policy document.

    Handle rate and classification changes deliberately

    When a notification changes the rate for a code, update the tax template from the effective date onward. Submitted invoices in ERPNext are locked by design. Correct past errors with credit or debit notes, not by trying to edit history.

    Watch mixed-supply and service lines

    Businesses that sell goods and also bill installation, AMC or freight often leave SAC codes blank on those service items. The result is service lines missing from the HSN summary.

    Multi-country groups

    If you run Indian and GCC entities on one ERPNext instance, HSN discipline applies to the Indian company. VAT in the Gulf is configured differently. Keep India-specific validation scoped to the Indian company so it doesn't get in the way elsewhere.

    Common HSN/SAC Mistakes and How to Fix Them

    MistakeWhat happensFix
    Code typed into the print format onlyReturns and e-invoices miss itStore it on the item
    Short codes acceptedTable 12 flagged or rejectedEnable minimum-digit validation
    Same product, different codesInconsistent rates and summariesDeduplicate during cleanup
    SAC left blank on service itemsService lines missing from HSN summaryMap service items explicitly
    Rate set only at item levelOne rate change needs many editsMove the tax template to the HSN code

    Frequently Asked Questions

    Yes, through the India Compliance app. It adds the GST HSN Code master, item-level HSN fields, validation settings, and GST reports including the HSN-wise summary.
    HSN codes classify goods. SAC codes classify services and start with 99. In ERPNext, both are stored in the same master and linked to items in the same way.
    At least 4 digits if your aggregate annual turnover in the previous financial year was up to ₹5 crore, and 6 digits above that. Portal requirements do change, so confirm the current rules with your tax advisor.
    An item should carry one code. If a product genuinely falls under two classifications depending on how it's sold, that's usually a sign it should be two items.
    Classification is a tax judgement, and your CA or advisor should confirm anything ambiguous. The ERP's job is to store that decision once and apply it the same way on every document.

    Getting Your HSN Mapping Right

    HSN and SAC codes are a master-data problem disguised as an invoicing detail. Fix the structure (codes on the master, tax templates on the codes, validation on entry, a named owner) and the same error stops repeating across invoices, e-invoices, e-way bills and returns.

    Aavatto sets up and cleans up GST configuration as part of our tailored ERPNext implementation work, including setups inherited from other vendors. If you’d like a second pair of eyes on your item master and HSN mapping before your next filing cycle, book a free ERPNext consultation.

    Niraj Gohel
    Meet Niraj Gohel, the “Problem Solver”, and occasionally the problem creator at Aavatto. When he’s not traveling, watching a film, or having a cup of tea, he spends his days solving problems, debating ideas, and occasionally distracting the team with completely unrelated conversations. His philosophy is simple: technology is important, but being a good human is more important.
    gohel-niraj
    This can be a new journey !

    Related Posts

    Have a Project in Mind?

    This can be a new journey !

    leaf