Pragma Chartered

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.

Flowchart of five stages left to right: 1 Collect from WhatsApp, email, upload or paper; 2 OCR draft with the original kept; 3 Checks on GSTIN, tax arithmetic and place of supply; 4 Review where a person corrects fields, picks the ledger and approves; 5 Tally import as a Purchase voucher with the result reported. Below, three duplicate gates: Gate 1 at Collect stops the same file by fingerprint; Gate 2 at Checks stops the same invoice by supplier GSTIN, invoice number and financial year; Gate 3 at Tally import stops a retry from reposting by using a stable voucher key. Nothing reaches Tally until a person approves.
Duplicates are stopped three times, at different stages, because each gate catches a different kind of repeat.Open full size
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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 invoice particulars, where they go in Tally, and the automatic check to run
Rule 46 particularWhere it goes in TallyAutomatic check
Name, address and GSTIN of the supplierParty ledger, with GSTIN and stateGSTIN 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 yearSupplier invoice number referenceSame supplier GSTIN plus number not already booked this financial year
Date of issueVoucher date and supplier invoice dateFalls in an open period and is not after today
Name, address and GSTIN of the recipientConfirms the bill belongs to this clientRecipient GSTIN equals the client's own GSTIN
HSN code and descriptionStock item or purchase ledger, HSN detailsHSN present; 6 digits where the supplier's turnover exceeds ₹5 crore
Quantity and unit for goodsInventory allocationQuantity times rate equals line value
Taxable value, rate and tax by headPurchase ledger plus CGST, SGST or IGST ledgersTax equals value times rate; total equals value plus tax
Place of supply for inter-State suppliesDecides IGST or CGST and SGSTInter-State bill carries IGST; intra-State carries equal CGST and SGST
Whether tax is payable on reverse chargeReverse charge treatmentFlag 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.

Three duplicate gates and what each one catches
GateKey comparedCatchesMisses on its own
1. On arrivalFingerprint of the fileSame PDF forwarded twice; same photo uploaded by two staffA photo and a PDF of the same bill
2. Before approvalSupplier GSTIN + invoice number + financial yearPhoto and PDF of one bill; bill already keyed by hand in TallyNothing at entry level, if numbers are read correctly
3. At importStable voucher identifier (GUID in XML)A retry after a network or Tally errorDuplicates 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

Resulting TallyPrime Purchase voucher for invoice SGT/26-27/0412 dated 14 October 2026
LedgerGroupDebit (₹)Credit (₹)
Purchase GST 18%Purchase Accounts48,500.00
Input CGSTDuties & Taxes4,365.00
Input SGSTDuties & Taxes4,365.00
Shree Ganesh Steel Traders (GSTIN 27AABCS4821K1ZP)Sundry Creditors57,230.00
Total57,230.0057,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

Ways to bring purchase vouchers into TallyPrime
MethodHow it worksSuits
Manual voucher entryStaff key each Purchase voucherLow volumes, one-off adjustments
Excel import, Sample Excel FileFill TallyPrime's predefined template; no mapping neededFirms that already prepare a fixed sheet
Excel import, mapping templateMap columns of any Excel file to TallyPrime fields and save the templateClient registers in their own format
XML importVouchers in Tally's XML format, manually or by a connectorPipelines that deliver vouchers continuously
  1. 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.

  2. 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.

  3. 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.

  4. Step 4: Import the transactions

    Press Alt+O (Import), select Transactions, and choose the Excel file with its mapping template, or the XML file.

  5. 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.

Illustrative bar chart, not measured data, of staff minutes per purchase bill. Manual entry totals 5.0 minutes: typing 3.0, checking 1.0, fixing 2B mismatches 1.0. OCR with review totals 1.5 minutes: review 1.0 and fixing flagged exceptions 0.5. At 400 bills a month, manual entry takes 33.3 hours and OCR with review takes 10.0 hours.
Illustrative only: the saving comes from removing typing and the 2B rework it causes, while review time stays.Open full size

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.

Intake: an uploaded GST invoice beside the fields OCR read from it, ready for review.
Duplicate guard: a repeated upload is refused and linked to the invoice already in the queue.
Review: the invoice with OCR boxes drawn on it, editable fields and the Approve button.

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