Import Purchase - OCR
How to turn scanned supplier bills into purchase vouchers.
Menu: Utilities\Import Scanned Documents Using OCR\Import Purchase - OCR
What this does for you
It reads your supplier bills and creates the purchase vouchers.
You select scanned bills — PDFs or photos — and the system reads the supplier, the bill number and date, the amounts and every item line. It then finds the matching supplier account and the matching item for each line. You check the result, fix anything shown in red, and save.
Whatever it cannot match, it asks you once. It remembers your answer for that supplier, so the next bill from them comes through ready to save.
Before you start
The supplier must already exist as a supplier or customer account. A bill never creates a new account.
The items must already exist. A bill line is matched to one of your items; it never creates a new item.
A configuration must be set up — a one-time job that needs a supervisor login (see below).
Your bills as files — PDF, JPG, PNG, TIFF or BMP files on your computer.
An internet connection — the reading is done as an online service.
Setting it up, once
Open the configuration
Open
Utilities\Import Scanned Documents Using OCR\Import Purchase - OCR.Click Configuration. You must be logged in as a supervisor; anyone else gets "Configuration Modification not allowed, Please Login As Supervisor."
The window Configure OCR Purchase Voucher opens with the configuration selected in the list. To make a new one, give it a name, fill in the settings below and save it.
Purchase Voucher Configuration
Which of your purchase configurations the new vouchers follow — it decides the series, taxes and calculation. Only normal purchase configurations you have rights to are listed. Shows None until you pick one; bills cannot be saved without it
Select Godown
Tick it to choose the godown the goods are received in. The godown search opens — pick one godown. If you close the search without choosing, the box stays unticked. Leave it unticked to use the purchase configuration's default godown
Godown
Shows the chosen godown, or (Purchase Configuration Default). Click it to choose a different godown
Tax Region
The tax region for the vouchers. (Party / Configuration Default) uses the purchase configuration's default. A branch-wise tax region set on the supplier always takes precedence
Allowed Difference in Bill Amount
How far the voucher total may differ from the total printed on the bill. Default 1 (one rupee), which allows for rounding. The check is skipped when no bill total could be read
Line Amount
Taxable Value (default) — each item's amount is its taxable value on the bill. Quantity x Rate — the amount is quantity × the rate printed on the bill, and the difference down to the taxable value is entered as the item's discount (see Line discounts below)
Line Discount Goes To
Used with Quantity x Rate: where each item's discount goes in the purchase voucher — Scheme (Rs) (default), Discount % or Scheme per Unit
Maximum Line Discount %
Used with Quantity x Rate. Default 50. A line whose discount works out above this % of quantity × rate keeps its taxable value as the amount, with no discount — a gap that large is usually a misread figure
Adjust Purchase Calculation for Line Discount
Ticked (default) — when your purchase configuration's discount heading is not set to deduct, to change the bill amount and to work item by item, or comes after tax, the new voucher alone uses it that way and before tax. Your purchase configuration itself is not changed. Not ticked — such a bill is not saved
Allow Manual Bill Values
Tick it to type, for each bill, a Freight, Handling or Postage amount, a Trade Discount, a Cash Discount or an Other Adjustment in the Bills list — for what the scan missed or misread (see Typing amounts the scan missed below). Default not ticked
Allow Manual Item Discounts
Tick it to type, for each item, a Discount %, a Scheme (Rs) amount or a Scheme per Unit in the Items list. Default not ticked
Add Manual Item Discounts to Read Discount
Used with Allow Manual Item Discounts. Not ticked (default) — a discount typed for an item replaces the discount read for it. Ticked — it is added to the discount read
Save Mapping As
How widely your item answers are remembered: for the supplier in all branches (Party + Document Type), per branch (Party + Branch + Document Type), per configuration (Party + Configuration), or per branch and configuration (Party + Branch + Configuration). Supplier answers are always remembered for all branches and configurations
Tip — if your purchase configuration has no default godown, tick Select Godown and choose one. Otherwise every bill is refused with "No godown - set Godown in the OCR configuration, or a default godown in the purchase configuration." If the purchase configuration has several default godowns, the first by name is used.
Scanning your bills
Read the bills
Pick your configuration from the list at the top first — changing it later clears the bills already read.
Click Scan Documents. A separate window opens. (With no configuration selected you get "Please create / select a configuration first.")
Add your bill files (several at once is fine), then process them.
When reading finishes the two lists fill in.
If you close that window without processing anything you see "No document was read."
Reading the screen
Bills (top list) — one row per bill: bill no, bill date (dd/mm/yyyy), bill amount (the total printed on the bill), taxable, tax, the Supplier on Bill, the Mapped Supplier, GST no, Items Mapped (for example 1 / 2), Invalid (Yes / No), Invalid Remarks, View Totals (Press here to view totals — see Checking the totals below) and the typed amounts Manual Freight, Manual Handling, Manual Postage, Manual Trade Disc., Manual Cash Disc. and Manual Adjustment.
Items (bottom list) — the lines of the bill selected above: product code, description, HSN code, quantity, unit, rate, amount, Taxable, Discount and tax %, then the Mapped Item, its item code and HSN, Matched By, Invalid and Invalid Remarks. Pack / Size and Company Name of the mapped item are also shown; you can hide them. The typed discounts are in Manual Disc. %, Manual Scheme (Rs) and Manual Scheme/Unit. On a size-wise bill, Bill Size shows the size each line was read from (see Size-wise bills below).
Selected Bill (bottom strip) — bill amount, taxable, tax, the total of the lines, items mapped, and the charges, line discount, typed bill amounts (Manual) and typed item discounts (Item Disc) when the bill has them.
The S.No. cell of each row is coloured:
Green
Nothing is missing — the bill will be tried when you save
Red
Something is missing. Invalid Remarks says what
Matched By tells you how each line found its item:
Remembered
You mapped this line for this supplier before
Item Code
The supplier's product code equals one of your item codes
Additional Code
The supplier's product code equals an item's additional code
Barcode
The supplier's product code equals one of your barcodes
Picked for Row
Size-wise bill: you mapped a line of this printed row on this bill
Not Found
No match — map it yourself
Product codes shorter than 4 characters are never matched automatically, so a supplier's code "12" is not mistaken for your item "12". When the product code printed on the line is really the HSN / SAC code, the code is ignored: the line is not looked up by code, and once you map it, it is remembered by its description.
Turning red into green
1. Map the supplier first
Double-click (or start typing in) Mapped Supplier on a red bill. The account search opens with the printed supplier name already filled in.
Pick the account. The bills are read again straight away.
From now on, bills showing the same supplier details are recognised automatically, in every branch. A supplier not mapped yet is matched by GST number, then mobile, email or PAN — only when exactly one account matches.
Suppliers you map here are also recognised in Import Journal Voucher Using OCR, and the other way round.
2. Then map the items
Select the bill, then double-click (or start typing in) Mapped Item on a red line. The item search opens with the line's description filled in.
Pick the item. The line turns green (unless another remark remains) and is remembered for this supplier.
Map each line separately — two lines with different descriptions can go to different items.
Trying to map an item before the supplier gives "Map the supplier of this bill first - items are remembered per supplier."
3. Refresh
Refresh Data reads every bill again using your latest answers and your latest configuration settings, without scanning again.
To drop a bill from the list, select it in the Bills list, press F8 and confirm "Are you sure to Remove this Bill from the list?"
Example — a bill from a new supplier
Asha scans a bill from Kiran Traders for ₹1,180 (₹1,000 + 18% GST) with two lines: "Steel Bolt M8" and "Steel Nut M8". The bill shows red — Supplier Not Mapped, 2 Item(s) Not Mapped. She picks Kiran Traders in Mapped Supplier, then maps the two lines to her items BOLT-M8 and NUT-M8. Both lines turn green, Matched By shows Remembered, and Items Mapped shows 2 / 2. Next month, Kiran Traders' bill comes in green with nothing to map — as long as it shows the same supplier details and item descriptions.
Messages on a red row
Supplier Not Mapped
Pick the supplier in Mapped Supplier
Supplier Account Not Found
The supplier mapped earlier no longer exists. Pick the supplier again
Item Not Mapped / … Item(s) Not Mapped
Pick the item in Mapped Item
Quantity Not Found
The line has no quantity and no amount, or a negative amount. Check the bill
Bill No Not Found / Bill Date Not Found
The bill number or date could not be read. Check the document
No Item Lines Found
No item lines were read from the bill
HSN differs (bill …, item …)
A warning only — the HSN on the bill is not the HSN on your item. Check you picked the right item
Lines total … differs from bill taxable …
A warning only — the lines read do not add up to the bill's taxable amount (before or after the line discounts). Check for a missed line
Discount … is above …% - taxable value used
A warning only — with Quantity x Rate, this line's discount is larger than Maximum Line Discount %, so the line uses its taxable value. Check the quantity and rate read
When a service bill prints no quantity, the quantity is taken as amount ÷ rate, or 1 when no rate is printed either.
Size-wise bills
Garment and footwear suppliers often print one row per style with a quantity under each size — 26, 28, 30 … or S, M, L, XL. The screen recognises such a bill by itself and enters one line per size.
A column counts as a size when it sits between the item and the quantity / rate / amount columns, its heading is one of your pack / size names, and it holds only quantities. At least two such columns are needed. Headings such as Box, Pcs, Free or Unit never count as sizes.
Each printed row becomes one line for every size that has a quantity. Bill Size in the Items list shows the size. Each size line keeps the rate, HSN and tax % of its printed row; the amount, taxable value and tax are shared out by quantity. A row starting with "Total" is skipped.
Map the item once for the row — any size of it will do. Every line of the row then goes to that same item in its own size. If the item does not have one of the sizes, that line stays red with Size … not found for … and counts as not mapped.
Two rows can print the same name and still be different items — two colours of one style, for example. Map one line of each row: your choice applies to that printed row on this bill, and Matched By shows Picked for Row. Your latest choice is also remembered for the supplier, so on the next bill both rows start from that item — check them.
If a row's sizes do not add up to the quantity printed for it, or the row cannot be matched to an item line read from the bill, the bill turns red and is not split. Check the bill, or enter it by hand.
Example — a size-wise bill
Priya's supplier prints three rows: "K10" with 2 each in sizes 26, 28, 30 and 32 at ₹100; "S22" with 3 each in S, M, L, XL and XXL at ₹200; and "K10" again with 1 each in sizes 26, 28 … 50 at ₹100. The Items list shows 22 lines, each with its Bill Size. Priya maps a line of the first K10 row to K10 Blue and a line of the third row to K10 Black, and S22 to S22 Grey. Every line moves to its own item in its own size, and Items Mapped shows 22 / 22.
Messages on a size-wise bill
Size … not found for …
The mapped item has no such size. Map the line to the right item, or add the size to the item
Size-wise row …: sizes add up to …, quantity printed …
The sizes read do not add up to the row's quantity — a misread figure. Check the bill, or enter it by hand
Size-wise row …: no read line with quantity …
The row could not be matched to an item line read from the bill. Check the bill, or enter it by hand
… line(s) of this size-wise bill have no size - check them
A warning only — these lines were entered as printed, without a size
Size columns of the bill could not be read: …
A warning only — the bill is entered one line per printed row
Size-wise bill: no item lines were read
The size columns were read but no item lines were. The bill is red and is not saved. Check the document
Saving
Save the green bills
Click Save and confirm "Save … of … bill(s) as purchase vouchers? Bills shown in red are skipped."
Each bill is saved on its own. A red bill, or one that fails, does not stop the others.
At the end a summary lists every bill: Saved - Voucher … with its new voucher number, or Not saved - … with the reason. A bill entered at its taxable values (see Line discounts) shows Saved at taxable values - the purchase configuration charges tax on quantity x rate, so the discount is not shown separately - Voucher ….
Saved bills leave the list. Bills that were not saved stay, ready to correct and save again.
What gets created
One purchase voucher per bill, in the purchase configuration you chose.
Voucher date: today. The supplier's bill date is the date printed on the bill.
The bill number, the supplier, the godown and the mapped items with the quantities and amounts read from the bill; each line's description is the one on the bill. With Line Amount set to Quantity x Rate, each line carries the rate printed on the bill and its discount.
Taxes are worked out by your purchase configuration — the tax % printed on the bill is not used. Market fees set on the item's tax are added too, as in a purchase voucher you enter yourself.
Why a bill is not saved
These show against the bill in the summary; the other bills are still saved.
Bill No: … already exists for this supplier
A bill with this number from this supplier is already entered in this branch and financial year. Duplicate bills are always refused
The purchase works out to … but the bill total is … (difference …; allowed …).
The voucher works out to a different total from the bill by more than Allowed Difference in Bill Amount — a misread figure, a discount on the bill (try Line Amount = Quantity x Rate), a charge taxed at a different rate, or market fees on an item's tax. Use View Totals to see where the difference is
Discount …: the purchase configuration has no … heading that is Less, before tax and calculated item-wise to take it.
The discount heading chosen in Line Discount Goes To does not fit your purchase configuration and Adjust Purchase Calculation for Line Discount is not ticked. Tick it, or change the heading in the purchase configuration. When the message ends (the heading is not in the purchase configuration), choose another heading
Manual Freight / Handling / Postage …: the purchase configuration has no … heading that adds to the bill amount.
The heading for the amount you typed is missing in the purchase configuration, does not add to the bill, or does not change the bill amount
Manual Cash Discount …: the purchase configuration has no Sp. Discount heading that is Less, after tax and affects the bill amount - use Trade Discount for a discount before tax.
A cash discount goes after tax, to an Sp. Discount heading that is Less and changes the bill amount. If your purchase configuration's Sp. Discount comes before tax, type the amount as a Trade Discount instead
Manual Adjustment …: the purchase configuration has no Adjust (Rs) heading that affects the bill amount.
Add an Adjust (Rs) heading that changes the bill amount to the purchase configuration
Manual Trade Discount … is not less than the items' amount ….
The Trade Discount typed is as large as what the items come to after their own discounts. Check the amount
Item …: discount … is not less than its amount ….
The discounts on that item add up to its whole amount or more. Check the discount typed for it
Manual item discount: the purchase configuration has no … heading that is Less, before tax and calculated item-wise to take it.
A typed item discount's heading does not fit and Adjust Purchase Calculation for Line Discount is not ticked — tick it, or change the heading in the purchase configuration. When the message ends (the heading is not in the purchase configuration), that heading is missing from the purchase configuration
Charge "…" …: the purchase configuration has no Freight, Handling or Postage heading … tax to take it.
Add or move a Freight, Handling or Postage heading in the purchase configuration, or enter the bill by hand
No godown - set Godown in the OCR configuration, or a default godown in the purchase configuration.
Tick Select Godown in the configuration and choose one
Purchase / Tax Details not found for all Items. Check Row No.: …
An item has no purchase or tax details for this configuration. Complete the item, then save again
Please set Default Tax Type before import this document.......
Set a default tax type in the purchase configuration
Why Save does nothing
Scan the bills first.
Scan some bills
No bill is ready to save - map the red suppliers / items first.
Every bill is still red
Purchase Configuration is not set in the OCR configuration.
Choose a Purchase Voucher Configuration
Today's date is not within the financial year - purchase vouchers cannot be saved.
Log in to the financial year that contains today
Charges on the bill
Charges printed on the bill — postage, courier, freight, packing, forwarding, handling and similar — are added to the purchase voucher. Selected Bill shows them, for example Charges 500.00 (not taxed).
Not taxed — the bill charges no GST on them (its taxable value is the items alone). They go to a Freight, Handling or Postage heading that comes after tax in your purchase configuration.
Taxed — the bill's taxable value includes them. They go to a heading that comes before tax, so GST is worked out on them too.
The heading the charge's name suggests is tried first — courier to Postage, transport to Freight, packing to Handling.
If your purchase configuration has no suitable heading, the bill is not saved: Charge "…" …: the purchase configuration has no Freight, Handling or Postage heading after tax to take it. (or before tax). Add or move the heading in the purchase configuration, or enter the bill by hand.
Example — a bill with courier charges
Ravi scans a bill for ₹2,972: items ₹2,354 + 5% IGST ₹117.70, ₹500 "Postage & Courier Expenses" and 30 paise round-off. Selected Bill shows Charges 500.00 (not taxed). He saves; the voucher carries ₹500 under Postage (after tax in his purchase configuration) and comes to ₹2,972, the same as the bill.
Line discounts
Many suppliers print each line as quantity × rate and then a lower taxable value — the difference is a discount. With Line Amount set to Taxable Value (the default) the voucher simply uses the taxable value, so the rate becomes taxable value ÷ quantity and no discount is shown.
Set Line Amount to Quantity x Rate to keep the supplier's rate and show the discount:
Each line's amount is quantity × the printed rate; Discount is the amount less the taxable value. Selected Bill shows the bill's total discount. A line with no printed rate keeps its taxable value.
On saving, the discount goes to the heading chosen in Line Discount Goes To — Scheme (Rs) as the amount, Discount % as a percentage of quantity × rate, or Scheme per Unit as the discount ÷ quantity. GST is worked out on the discounted amount, as on the bill.
If that heading in your purchase configuration does not deduct, does not change the bill amount, does not work item by item, or comes after tax, and Adjust Purchase Calculation for Line Discount is ticked, the new voucher alone uses the heading that way and before tax. The voucher keeps these settings, so it shows the same totals when you open it later. Your purchase configuration is not changed.
If your purchase configuration charges a tax on quantity × rate itself, a discount cannot reduce that tax. Such a bill is entered at its taxable values instead — no discount is shown, the totals match the bill, and the summary says Saved at taxable values.
Example — a bill with a trade discount
Meena's supplier prints a line as 3 × ₹200, taxable value ₹588 (a 2% discount) plus 5% GST ₹29.40 — ₹617.40 in all. With Line Amount = Quantity x Rate and Line Discount Goes To = Scheme (Rs), the line shows Rate 200, Amount 600, Taxable 588 and Discount 12. View Totals shows the 12 scheme discount and GST on ₹588, and the voucher comes to ₹617.40, the same as the bill.
Typing amounts the scan missed
When the scan missed or misread a charge or a discount, type it yourself. Click the cell, type the amount and press Enter — leaving the cell without Enter discards what you typed. To remove an amount, clear the cell and press Enter. Typed cells are shaded light yellow. What you typed is kept when you refresh or map suppliers and items, until the bill is saved; it is cleared if you choose another configuration in the list or close the screen.
For the whole bill (Bills list, with Allow Manual Bill Values ticked):
Manual Freight / Manual Handling / Manual Postage
Goes to that heading of the purchase configuration, before or after tax as the configuration has it. It replaces a charge read from the bill for the same heading — typing 0 removes the read charge
Manual Trade Disc.
A discount before tax: spread over the items in proportion to what each comes to after its own discount, and added to each item's discount (the heading in Line Discount Goes To), so GST is worked out on the lower amount
Manual Cash Disc.
A discount after tax, to Sp. Discount
Manual Adjustment
Goes to Adjust (Rs), which adds to or takes off the bill amount — before or after tax — as that heading is set in the purchase configuration. A minus amount reverses it. Check its effect in View Totals
For an item (Items list, with Allow Manual Item Discounts ticked):
Manual Disc. %
A discount % of the item's amount, to Discount %
Manual Scheme (Rs)
A discount amount for the item, to Scheme (Rs)
Manual Scheme/Unit
A discount per unit, to Scheme per Unit
A discount typed for an item replaces the discount read for it, or is added to it when Add Manual Item Discounts to Read Discount is ticked.
Each heading used must take a discount before tax. With Adjust Purchase Calculation for Line Discount ticked, the new voucher alone uses it that way, as for line discounts.
If your purchase configuration charges a tax on quantity × rate itself, typed discounts are folded into the items' rates instead, and the summary says Saved at taxable values.
Amounts are rounded the way your purchase configuration rounds them, so a Trade Discount of ₹40 adds ₹40 to the bill's discounts, to the nearest unit the configuration rounds to.
With the setting not ticked, clicking these cells says "Manual bill values are off in the OCR configuration (Allow Manual Bill Values)." or "Manual item discounts are off in the OCR configuration (Allow Manual Item Discounts)."
Example — a bill with a missed courier charge and a misread item discount
Sunil's supplier bill shows ₹150 courier, but the scan did not pick it up, and a ₹30 scheme on one item was read as ₹3. Sunil types 150 in Manual Postage for the bill and 30 in Manual Scheme (Rs) for that item, which replaces the ₹3 read. View Totals shows Postage ₹150 and the item's ₹30 scheme before he saves.
Checking the totals
Before saving, select a bill and click View Totals — or double-click Press here to view totals in its row. The purchase totals window opens with the bill worked out exactly as it will be saved: gross amount, discounts, charges, each tax, the net amount and the Net Round Amount. Compare the Net Round Amount with the bill. A bill whose supplier is not mapped yet gives "Map the supplier of this bill first.", and the reasons a bill would not be saved (a charge or discount heading, the godown) show here too.
OK and Cancel only close the window — nothing is saved from it. Bills are saved only by Save.
Good habits
A PDF from the supplier reads best; a flat, well-lit photo next; a tilted photo worst.
Start with your regular suppliers. Mapping is done once per supplier and item, so the time saved grows every month.
Check before you save — glance at the amounts against the bills.