Tally
How to automate Tally data entry from purchase invoices
Automate Tally data entry from purchase invoices: OCR, WhatsApp intake, review, duplicate checks and a worked voucher with CGST and SGST, for CA firms.
Pragma Chartered editorial teamPublished Updated 15 min read
Key takeaways
- Automating Tally data entry means OCR drafts each purchase voucher and a person approves it; the reviewer checks and corrects instead of typing.
- Use the particulars in Rule 46 of the CGST Rules, 2017 (supplier GSTIN, invoice number, date, HSN, taxable value, tax by head, place of supply) as the OCR field list.
- Stop duplicates at three points: the same file on arrival, the same supplier GSTIN plus invoice number in a financial year before approval, and the same voucher key at import.
- In TallyPrime, set Import Configuration (Alt+O > Import > Configuration) to Record Exceptions and Import, and create party ledgers with GSTIN and state before importing vouchers.
- Under Section 16(4) of the CGST Act, credit on FY 2025-26 purchase bills cannot be taken after 30 November 2026, so a bill still sitting in a WhatsApp chat is credit at risk.
On this page
To automate Tally data entry from purchase invoices, collect every client bill into one queue, let OCR read the invoice fields into a draft voucher, run GSTIN, arithmetic and duplicate checks, have a person approve the draft against the original, and import approved vouchers into TallyPrime. The typing goes; the checking stays.
This guide covers each stage, the Rule 46 fields to extract, three places to stop duplicates, the TallyPrime import settings that matter, a worked example of one steel bill from WhatsApp photo to Purchase voucher, and the mistakes we see when firms switch over.
Where manual purchase entry goes wrong
A client sends a month of bills as WhatsApp photos, a few PDFs by email and a bundle of paper at the month-end visit. An article assistant keys each one into TallyPrime: supplier, GSTIN, invoice number, date, taxable value, CGST and SGST or IGST, and the purchase ledger. Across forty clients, the books trail GSTR-3B by a week, and every typing error carries a GST consequence.
- Mistyped supplier GSTIN: the bill never matches GSTR-2B and shows as missing during GSTR-2B reconciliation.
- Transposed invoice number: a mismatch someone chases with the supplier weeks later, although the supplier reported it correctly.
- Same bill entered twice: input tax credit is overstated until someone notices at the annual return.
- Bill never entered: the photo stays in a chat, and the credit may lapse.
- No trail: when a figure is wrong, nobody can tell whether it came from the bill or from the typist.
The lapse risk has a date. Under Section 16(4) of the CGST Act, credit on an invoice or debit note cannot be taken after 30 November following the end of the financial year to which it pertains, or after furnishing the annual return for that year, whichever is earlier. For FY 2025-26 bills that is 30 November 2026 at the latest. And because Section 16(2)(aa) ties credit to the supplier having reported the invoice, the books must be complete early enough to compare against GSTR-2B every month, before the GSTR-3B due date.
The five-stage pipeline from bill to voucher
Every workable setup, built in-house or bought, has the same five stages. Do not drop review or de-duplication to save time: one wrong voucher in a filed period costs more to unwind than the typing saved.
Step 1: Collect into one queue per client
Route WhatsApp photos, emailed PDFs, uploads and scanned paper into the same queue, filed against the client who sent them, with the original file kept in private storage.
Step 2: Extract fields with OCR
Read the Rule 46 particulars into a draft voucher. Keep the original next to the draft so every field can be traced to the bill.
Step 3: Run automatic checks
Test GSTIN against the party master, tax arithmetic, IGST versus CGST and SGST by place of supply, recipient GSTIN, period, and the duplicate key, before anyone opens the draft.
Step 4: Review and approve
A person compares draft and original, corrects fields, confirms the party and purchase ledgers, decides credit eligibility and approves. Nothing moves to Tally before this.
Step 5: Import into TallyPrime and reconcile the result
Deliver approved vouchers by Excel or XML import, read the exceptions report, and mark each bill as posted or failed so nothing is silently skipped.
Bank lines follow the same pattern with different checks; see how to import a bank statement into TallyPrime.
What OCR should read: the Rule 46 checklist
Rule 46 of the CGST Rules, 2017 lists the particulars a tax invoice must carry, so it doubles as the extraction template and the reviewer's checklist. The rows below are the ones that decide a Purchase voucher and the credit on it.
| Rule 46 particular | Where it goes in Tally | Automatic check |
|---|---|---|
| Name, address and GSTIN of the supplier | Party ledger, with GSTIN and state | GSTIN matches a party in the client's ledger master; first two digits match the supplier's state code |
| Consecutive serial number, up to 16 characters, unique for a financial year | Supplier invoice number reference | Same supplier GSTIN plus number not already booked this financial year |
| Date of issue | Voucher date and supplier invoice date | Falls in an open period and is not after today |
| Name, address and GSTIN of the recipient | Confirms the bill belongs to this client | Recipient GSTIN equals the client's own GSTIN |
| HSN code and description | Stock item or purchase ledger, HSN details | HSN present; 6 digits where the supplier's turnover exceeds ₹5 crore |
| Quantity and unit for goods | Inventory allocation | Quantity times rate equals line value |
| Taxable value, rate and tax by head | Purchase ledger plus CGST, SGST or IGST ledgers | Tax equals value times rate; total equals value plus tax |
| Place of supply for inter-State supplies | Decides IGST or CGST and SGST | Inter-State bill carries IGST; intra-State carries equal CGST and SGST |
| Whether tax is payable on reverse charge | Reverse charge treatment | Flag for the reviewer; do not book supplier-charged tax |
A GSTIN has fifteen characters: two for the State code, ten for the PAN, two for the entity code and one checksum character. The first two digits therefore tell you the supplier's state, which settles the IGST or CGST and SGST question for most goods bills before anyone reads the tax table.
The HSN digit rule comes from Notification No. 78/2020-Central Tax: from 1 April 2021, suppliers with aggregate turnover above ₹5 crore in the preceding year show 6-digit HSN or SAC, and those up to ₹5 crore show 4 digits on B2B invoices. Rates changed with the 56th GST Council rate rationalisation, effective 22 September 2025 for most goods and services, which moved to 5% and 18% slabs with a 40% rate for a few goods. Flag any 12% or 28% line on a bill dated after that date for a second look.
Suppliers above ₹5 crore aggregate turnover have issued e-invoices with an IRN and QR code since 1 August 2023, under Notification No. 10/2023-Central Tax. If a supplier you know is above that threshold sends a B2B bill without an IRN, ask for the e-invoice before booking it.
Stopping duplicates at three points
A duplicate purchase voucher overstates credit, and it is the error firms find latest. One check is not enough because repeats arrive in three different shapes.
| Gate | Key compared | Catches | Misses on its own |
|---|---|---|---|
| 1. On arrival | Fingerprint of the file | Same PDF forwarded twice; same photo uploaded by two staff | A photo and a PDF of the same bill |
| 2. Before approval | Supplier GSTIN + invoice number + financial year | Photo and PDF of one bill; bill already keyed by hand in Tally | Nothing at entry level, if numbers are read correctly |
| 3. At import | Stable voucher identifier (GUID in XML) | A retry after a network or Tally error | Duplicates created before approval |
Gate 2 rests on Rule 46: the serial number must be unique for a financial year, so supplier GSTIN, number and year identify one invoice. Compare that key with approved bills and with vouchers already in Tally. Revised invoices and debit notes carry their own numbers and pass through as separate documents. Gate 2 fails if OCR misreads the number, which is why the worked example below matters.
Worked example: one steel bill from WhatsApp to Tally
| Ledger | Group | Debit (₹) | Credit (₹) |
|---|---|---|---|
| Purchase GST 18% | Purchase Accounts | 48,500.00 | |
| Input CGST | Duties & Taxes | 4,365.00 | |
| Input SGST | Duties & Taxes | 4,365.00 | |
| Shree Ganesh Steel Traders (GSTIN 27AABCS4821K1ZP) | Sundry Creditors | 57,230.00 | |
| Total | 57,230.00 | 57,230.00 |
Both corrections were one-character OCR misreads of the kind that typists also make. The difference is that the GSTIN check caught the first and the reviewer, looking at the original beside the draft, caught the second in seconds. The names and GSTINs in this example are fictional.
Getting approved vouchers into TallyPrime
| Method | How it works | Suits |
|---|---|---|
| Manual voucher entry | Staff key each Purchase voucher | Low volumes, one-off adjustments |
| Excel import, Sample Excel File | Fill TallyPrime's predefined template; no mapping needed | Firms that already prepare a fixed sheet |
| Excel import, mapping template | Map columns of any Excel file to TallyPrime fields and save the template | Client registers in their own format |
| XML import | Vouchers in Tally's XML format, manually or by a connector | Pipelines that deliver vouchers continuously |
Step 1: Import the ledger master first
TallyPrime's help says masters a voucher depends on, such as ledgers and units, must already exist in the company. Create every party with GSTIN and state, and the purchase and GST ledgers, before the first voucher import.
Step 2: Set Import Configuration
Press Alt+O > Import > Configuration. Under behaviour when exceptions exist, choose Record Exceptions and Import, so one bad row does not block the batch and nothing is skipped without a record.
Step 3: Turn on overwriting for XML
In the same screen, enable overwriting of vouchers in XML format. A voucher with the same GUID is then overwritten instead of duplicated, which is Gate 3.
Step 4: Import the transactions
Press Alt+O (Import), select Transactions, and choose the Excel file with its mapping template, or the XML file.
Step 5: Clear the exceptions report
Resolve each recorded exception (usually a missing ledger or unit), re-import those vouchers, and mark the bills posted only when they appear in the Day Book.
Let Tally assign its own voucher numbers where the client's numbering series matters, and carry the supplier invoice number as the reference. TallyPrime's help also warns that missing party GST details leave sales invoices Uncertain in GST reports; the same discipline on purchase parties keeps the purchase side clean.
What changes in staff time per bill
Automation moves time from typing to review; it does not remove review. The figure uses assumed minutes, not measurements, to show where the saving comes from: typing disappears, and the rework at 2B reconciliation shrinks because fewer GSTINs and invoice numbers are wrong.
Time ten bills each way for one client before deciding. Then track four numbers for the first three months:
- Days from bill received to voucher in Tally, against the client's GSTR-3B date.
- Fields corrected per bill at review. A high rate on one supplier usually means a poor photo or an unusual layout.
- Duplicates stopped, split by gate. Each one is credit that would have been overclaimed.
- Unmatched lines at 2B reconciliation. Typing-error mismatches should fall away, leaving genuine supplier-side gaps.
Mistakes we see when firms automate purchase entry
- Approving without opening the original. Reviewers who read only the draft confirm OCR's errors. Keep the image beside the fields and require a glance at GSTIN, number, date and totals.
- Running Gate 2 on unreviewed numbers. An O-for-zero misread defeats the duplicate check, as in the worked example. Re-run the check after every correction, not only on arrival.
- Importing vouchers before the ledger master. Every voucher naming a missing party or GST ledger lands in the exceptions report instead of the books. Import parties with GSTIN and state first.
- Choosing Ignore Exceptions and Import. Rows with missing masters are processed without anyone seeing the problem. Record exceptions instead and clear the report.
- Letting OCR decide credit. Food and beverages, club memberships and motor vehicles may fall under Section 17(5). Flag them for the reviewer; see blocked credit under Section 17(5).
- Losing late bills in filed months. A bill dated in a month whose GSTR-3B is already filed is booked with its own date, and its credit is then missed because nobody revisits that month. Tag such bills at review so the credit is taken in the current month's GSTR-3B, within the Section 16(4) limit.
- Ignoring IMS status. A bill pending in the Invoice Management System does not give credit this month; see IMS in GST for accept, reject and pending.
Firms extending automation beyond purchase bills, to drafting replies or answering questions from client records, should read AI for chartered accountants on where a person must stay in the loop.
How Pragma helps
In Pragma Chartered, staff upload a PDF, JPEG or PNG against a client; it lands in private storage, OCR reads it into a draft, and it joins the review queue with every field next to the original. Bills clients send to your firm's own WhatsApp number become review items under the sender (rolling out). Every file is fingerprinted on arrival, so a repeat points to the first copy, and each file is malware-scanned. Importing sales and purchase registers from Excel or CSV is in early access. See how intake works.
Reviewers correct fields, choose ledgers from suggestions based on the client's Tally map, and approve; each correction is a numbered revision. A Windows connector beside TallyPrime imports approved vouchers and reports each result, and the same approved invoice always produces the same voucher, so a retry cannot post twice. A person at your firm still reviews and files every return.
Frequently asked questions
Can Tally data entry from purchase invoices be fully automated without manual review?
It should not be. OCR reads characters well but cannot judge ledger choice, blocked credit or whether a bill belongs to the client. Automate collection, extraction and checks, and keep a person approving each voucher before it reaches TallyPrime.
Which invoice fields should be checked before booking a purchase bill in Tally?
Use Rule 46 of the CGST Rules as the checklist: supplier name, address and GSTIN; invoice number and date; recipient GSTIN; HSN and description; quantity; taxable value; tax rate and amount by head; place of supply for inter-State supplies; and whether reverse charge applies.
How do I stop the same purchase invoice being entered twice in Tally?
Check at three points: fingerprint each incoming file so an identical file is refused; before approval, compare supplier GSTIN, invoice number and financial year with bills already booked; and import by XML with overwriting enabled so a voucher with the same GUID is replaced, not duplicated.
Where is the import option in TallyPrime?
Press Alt+O for Import and select Masters or Transactions. Import Configuration is at Alt+O > Import > Configuration, where you choose how exceptions are handled and whether XML vouchers with the same GUID are overwritten.
What is the last date to book a missed purchase invoice and still claim ITC for FY 2025-26?
Under Section 16(4) of the CGST Act, credit cannot be taken after 30 November following the end of the financial year or after filing the annual return for that year, whichever is earlier. For FY 2025-26 invoices the outer date is 30 November 2026.
References
- CGST Rules, 2017, Part A, including Rule 46 (CBIC)
- CBIC Circular No. 237/31/2024-GST, reproducing Section 16(4) of the CGST Act
- Section 16 of the CGST Act, 2017 (CBIC tax information portal)
- GSTIN format under the registration rules (CBIC)
- CBIC press release on HSN digits under Notification No. 78/2020-Central Tax
- Recommendations of the 56th GST Council meeting (GST Council)
- E-invoice notifications including No. 10/2023-Central Tax (GST e-invoice portal)
- Understanding Import Data from Excel, including Import Configuration (TallyHelp)
- How to Import Data using Any Excel File into TallyPrime (TallyHelp)