Technical
Tally to ERPNext Migration: Masters, Opening Balances, Stock and GST
A step-by-step plan for moving from Tally to ERPNext. It covers masters, opening balances, open invoices, stock, GST setup, the Data Import tool, a parallel-run month and the checks to sign off before go-live.
Kalvyai Engineering · · 9 min read

On this page
Most Tally to ERPNext moves fail on details, not on the big picture. A ledger lands in the wrong group, an old invoice is imported with GST a second time, or opening stock does not match the balance sheet. This post is the plan we follow. It runs from the cutover date to sign-off.
Decide the cutover date and what moves
Pick a cutover date at the start of a month, ideally the start of a quarter or financial year. Everything before that date stays in Tally. Everything from that date onwards is entered in ERPNext.
What usually moves:
- Masters: chart of accounts, customers, suppliers, items, units, warehouses, cost centres.
- Opening balances: closing balances from Tally as of the day before cutover.
- Open invoices: unpaid sales and purchase bills, one by one, so ageing and follow-ups work.
- Opening stock: quantity and value per item per warehouse.
What usually does not move: full transaction history. Importing years of vouchers is slow and error-prone, and it rarely pays off. Keep Tally available in read-only use for lookups and audits.
Map Tally concepts to ERPNext
Agree on this mapping before anyone exports a file.
Tally | ERPNext |
|---|---|
Groups | Account groups in the Chart of Accounts |
Ledgers (general) | Accounts |
Ledgers under Sundry Debtors | Customers (plus a Debtors receivable account) |
Ledgers under Sundry Creditors | Suppliers (plus a Creditors payable account) |
Stock Groups | Item Groups |
Stock Items | Items |
Units of Measure | UOM |
Godowns | Warehouses |
Cost Centres | Cost Centers |
Bill-wise details | Opening Sales and Purchase Invoices |
The big difference: Tally has one ledger per customer. ERPNext has one receivable account for all customers and tracks each customer as a party. So you do not create 800 debtor accounts in ERPNext. You create 800 Customers that post to one Debtors account.
Step 1: Set up the company and GST
- Create the Company with the correct currency, default accounts and the fiscal year that contains your cutover date.
- Install the India Compliance app for GST on ERPNext v14 and later.
- Enter company GSTINs on the company Address records. One address per GSTIN if you have several registrations.
- Review the GST accounts (input and output CGST, SGST, IGST) and set them in GST Settings.
- Create or review Item Tax Templates for each GST rate you use (for example 5%, 12%, 18%, 28%).
Do this before importing masters. Customers, suppliers and items need GST fields to be ready when they are created.
Step 2: Chart of accounts
Export the list of groups and ledgers from Tally.
Then clean it up before importing:
- Remove individual debtor and creditor ledgers. They become Customers and Suppliers.
- Remove GST duty ledgers if you are using the GST accounts created by the compliance app. Map the old names to the new accounts in a spreadsheet so balances land in the right place.
- Map each Tally group to an ERPNext root type: Asset, Liability, Equity, Income or Expense.
- Mark bank accounts, cash accounts and stock accounts with the correct account type.
You can load the result with the Chart of Accounts Importer, or edit the standard chart by hand if it is small.
Step 3: Import masters with the Data Import tool
The Data Import tool works the same way for every document type:
- Open Data Import and create a new import.
- Pick the Document Type (for example Customer) and the Import Type: insert new records or update existing ones.
- Download the template, choosing only the columns you need.
- Fill the template, upload it and review the preview and warnings.
- Run the import and read the import log. Fix failed rows and re-run only those.
Import in dependency order, because later records point to earlier ones:
- UOMs, Item Groups, Customer Groups, Supplier Groups, Territories, Warehouses, Cost Centers
- Items
- Customers and Suppliers
- Addresses and Contacts, linked to their parties
Tally exports rarely fit the template as-is. A short script saves hours. This example turns a Tally debtor export into rows for the Customer template. Rename the column headers to match the template you actually downloaded.
import pandas as pd
# Tally export of ledgers under Sundry Debtors
tally = pd.read_excel("tally_debtors.xlsx")
out = pd.DataFrame({
"Customer Name": tally["Ledger Name"].str.strip(),
"Customer Type": "Company",
"Customer Group": "Commercial",
"Territory": "India",
})
# Drop exact duplicates and flag near-duplicates for manual review
out = out.drop_duplicates(subset=["Customer Name"])
out["name_key"] = out["Customer Name"].str.lower().str.replace(r"[^a-z0-9]", "", regex=True)
dupes = out[out.duplicated("name_key", keep=False)]
dupes.to_csv("review_duplicates.csv", index=False)
out.drop(columns=["name_key"]).to_csv("customer_import.csv", index=False)Things to clean during this step:
- Duplicates: "ABC Traders" and "A.B.C. Traders" are common in Tally. Merge them before import, not after.
- GSTIN and GST category on every party. Registered, unregistered, SEZ, overseas and so on. Wrong categories break GST returns later.
- HSN/SAC codes and the Item Tax Template on every item.
- Item codes: Tally often uses names as identifiers. Decide on stable item codes now, and keep the Tally name in the description or a custom field for reference.
- Stock UOM: pick it carefully. Changing it after stock transactions exist is not straightforward.
Step 4: Opening balances for general accounts
Take the Tally trial balance as of the day before cutover. Post it in ERPNext as a Journal Entry with Is Opening set to Yes and the posting date set to the day before cutover (the last day of the previous period).
Leave three things out of this journal entry:
- Debtors: they come from opening sales invoices in Step 5.
- Creditors: they come from opening purchase invoices in Step 5.
- Stock in hand: it comes from the opening Stock Reconciliation in Step 6, if you use perpetual inventory.
If you post those in the journal entry too, they will be counted twice. Use the Temporary Opening account to balance the journal entry. Steps 5 and 6 will clear it.
For large trial balances, use Data Import on Journal Entry with the child table for accounts. Keep each entry to a size you can review.
Step 5: Open invoices
Export bill-wise outstanding from Tally for debtors and creditors: party, bill number, bill date, due date and pending amount.
Load them with the Opening Invoice Creation Tool:
- Select the company and the invoice type (Sales or Purchase).
- Add one row per open bill: party, posting date, due date, outstanding amount, and the Tally bill number in the invoice reference so staff can find it.
- Use Temporary Opening as the opening account.
- Create the invoices.
These opening invoices carry only the outstanding amount. Do not add GST to them. The tax was already reported from Tally. Adding it again would push the amount into ERPNext GST reports for the wrong period.
For unadjusted advances (money received from a customer with no bill against it yet), post a Payment Entry or Journal Entry marked as opening, against the party. Then it can be allocated to future invoices.
Step 6: Opening stock
Export stock summary from Tally as of the day before cutover, by item and godown, with quantity and rate or value.
Post it with a Stock Reconciliation whose purpose is Opening Stock:
- Set the posting date to the day before cutover.
- Add item, warehouse, quantity and valuation rate for each line.
- Use Temporary Opening as the difference account.
- Submit.
For batch or serial-tracked items, include batch numbers or serial numbers on each line. If Tally did not track batches but you will in ERPNext, agree on a placeholder batch per item for opening stock.
Check that the Stock Ledger value matches the stock-in-hand figure from the Tally balance sheet. Tally valuation methods and ERPNext valuation (FIFO or moving average) can differ, so the rate you post at opening matters.
Step 7: Prove the opening is complete
After Steps 4 to 6, the Temporary Opening account should be zero. If not, something is missing or doubled. This query on the site database lists opening balances per account:
SELECT account,
SUM(debit) - SUM(credit) AS balance
FROM `tabGL Entry`
WHERE is_opening = 'Yes'
AND is_cancelled = 0
AND company = 'Your Company Name'
GROUP BY account
ORDER BY account;Compare each line with the Tally trial balance. Then run these reports in ERPNext as of the day before cutover and match them to Tally:
- Trial Balance
- Accounts Receivable and Accounts Payable (totals and per-party)
- Stock Balance (quantity and value per warehouse)
A difference of a few rupees from rounding is usually explainable. A difference on one party is usually a missing bill. Find it now, not after go-live.
GST points that catch people out
- Place of supply depends on company address and customer address. Every customer needs a correct billing address with state, and GSTIN where registered.
- Tax templates by category: in-state sales should apply CGST and SGST, out-of-state should apply IGST. Test both with a real customer of each type.
- Returns for the cutover month: decide who files what. Usually Tally covers periods before cutover and ERPNext covers the cutover month onwards. Do not mix one month across both.
- E-invoicing and e-way bills: if you are required to generate them, configure and test the credentials in a sandbox first.
- Credit notes against old Tally invoices: the original invoice does not exist in ERPNext. Agree on how to record these (for example a credit note against the opening invoice, with the original bill number in the reference) and check with your accountant how it should appear in returns.
The parallel-run month
Run the first month in both systems. It costs extra effort, but it is the cheapest way to find gaps.
- Enter every sales invoice, purchase bill, payment and stock movement in ERPNext as the primary system.
- Enter the same transactions in Tally, or at least the totals per day, as a control.
- Each week, compare: sales and purchase totals, GST output and input totals, bank balances, top 20 customer balances, and stock of your top 50 items.
- Log every difference with its cause and fix. Most will be master data (wrong tax template, wrong UOM) or process (someone used the wrong naming series or warehouse).
- At month end, run the GST return reports in ERPNext and compare them with the Tally figures for the same month before anything is filed.
If the team is too small to double-enter everything, double-enter a sample: one full week, plus all GST-relevant documents for the month.
Go-live sign-off checklist
Get a named owner to sign each line. Do not switch off Tally entry until all are ticked.
- [ ] Temporary Opening account balance is zero.
- [ ] Trial balance on the day before cutover matches Tally.
- [ ] Receivables and payables match Tally per party, not just in total.
- [ ] Stock quantity and value match Tally per warehouse.
- [ ] Every customer and supplier has GST category, and GSTIN where registered.
- [ ] Every item has HSN/SAC and the correct tax template.
- [ ] Test invoices for in-state, out-of-state, unregistered and export customers show the right taxes.
- [ ] Parallel-run month totals match, with every difference explained.
- [ ] GST return figures for the parallel month reviewed by the accountant.
- [ ] Print formats for invoices, delivery notes and payment receipts approved.
- [ ] User roles and permissions reviewed: who can submit, cancel and amend.
- [ ] Backups of the ERPNext site are scheduled and one restore has been tested.
- [ ] Tally data backed up and kept accessible for audits.
How Kalvyai can help
We plan and run Tally to ERPNext migrations: data mapping, cleanup scripts, opening entries, GST setup and the parallel-run checks above. We also build integrations and AI agents that work inside ERPNext with human approvals, budgets and an audit trail. See our ERPNext work at kalvyai.com/erpnext and our ready-made ERPNext and Odoo apps at store.kalvyai.com.
If you are planning a move off Tally, contact us with your Tally version, number of companies and rough data size, and we will suggest a cutover plan.
- ERPNext
- Tally
- Data Migration
- GST
- Accounting
- Go-Live
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