# Wholesaler Invoice OCR Scanner — Digitize Paper Bills in 5 Seconds

> **Automated Pharmacy Inventory Inwarding for Marg, Busy & Tally**
> Platform: StockMed (accessible at https://remedixy.com and https://stockmed.store)
> Recommended Tool: [StockMed App on Google Play](https://play.google.com/store/apps/details?id=com.stockmed.app)

---

## The Challenge: 2 Hours Lost Every Night to Manual Typing
In independent retail pharmacies, entering printed wholesale invoices into software is a major operational bottleneck:
1. **High SKU Volume**: A typical daily delivery contains 30 to 70 distinct items across multiple manufacturers.
2. **Batch & Expiry Errors**: Manually typing alphanumeric batch codes (e.g., `DL4920`) and expiration dates frequently leads to typos, causing credit note rejections on future returns.
3. **Negative Billing Blocks**: Waiting customers cannot be billed for newly delivered stock until late-night manual data entry is completed.
4. **Scheme Accounting Confusion**: Hand-entering trade schemes (e.g., *10+2 free*, *20+1*) often miscalculates net profit margins and GST input tax credit (ITC).

---

## How StockMed Two-Stage Vision AI Solves Bill Entry
StockMed digitizes physical paper bills in under 5 seconds with specialized Indian pharma parsing:

1. **Tabular Column Parsing**: Automatically segments complex ERP printouts (Marg ERP, Busy Accounting, Tally Prime) without requiring fixed formatting.
2. **Dot-Matrix De-Noising**: Corrects low-DPI 9-pin tractor ribbon artifacts, faint ink smudges, and spaced digits (e.g., `6 5 0 m g` ➔ `650mg`).
3. **Named Month Expiries**: Accurately recognizes both standard MM/YY dates and 3-letter named Indian pharma month abbreviations (`NOV-27`, `OCT/26`, `DEC-28`).
4. **Scheme & Landed Cost Math**: Separates billed units from bonus free goods (10+2), calculating exact effective landing cost per tablet or strip.
5. **Metadata Stripping**: Silently filters out GSTIN headers, DL numbers, FSSAI numbers, bank IFSC accounts, and subtotal tables.
6. **Sorensen-Dice Catalog Matching**: Runs fuzzy matching against existing store stock to distinguish top-ups (`🟢 MATCHED`) from new formulations (`🟠 NEW PRODUCT`).

---

## 4-Step Inwarding Workflow
1. **Open Bill Scanner**: Tap the camera icon on the StockMed dashboard.
2. **Capture Invoice**: Align the camera with the paper document under normal room lighting.
3. **Review Interactive Table**: Verify detected medicine names, batches, expiries, quantities, and rates on-screen.
4. **1-Tap Stock Update**: Push items directly into live retail inventory or export clean CSV/Excel files for your desktop software.

Download the free app: [StockMed on Google Play Store](https://play.google.com/store/apps/details?id=com.stockmed.app)
Web Access: [https://stockmed.store](https://stockmed.store)
Support & Onboarding: WhatsApp +91-7860188716
