- Case studies
- Automotive OEM
- Inward
- Case study
GRN Automation: From Gate Entry to SAP Posting
GRN automation as our co-founder builds it: the truck's documents photographed at the gate, 27 to 30 checks per document, and a GRN posted to your ERP.

- Plant
- Automotive OEM, inward gate
- Process
- Gate entry to GRN in the ERP
- Data
- Invoice, LR, e-way bill, ASN no., PO
- Changed
- Clean sets post at the gate; exceptions go to an admin
In this case study
What you are looking at
In this video Vinay Phadnis, co-founder of Atomic Loops, walks the inward gate the way his team automates it: the truck's invoice, lorry receipt, e-way bill and ASN number photographed at the gate, checked against the purchase order and posted as a GRN in the ERP.
He then follows a set with a wrong HSN code or quantity through the admin, the AI co-pilot and the supplier's revised invoice. The worked example below runs both paths at one gate.
- 27–30 checkpoints per document17
- GRN posted to SAP, Oracle or Dynamics25
- Supplier follow-up every few hours34
- Clean sets post from day one27
The inward gate as one data path
One truck, one phone at the gate: the document set goes up as photos and comes back as a GRN number and a printed sticker. A discrepancy takes the amber branch to the admin.
| Stop | Who | What happens |
|---|---|---|
| 1Document set | Truck driver | Invoice, lorry receipt (LR), e-way bill, purchase order and the supplier's ASN number |
| 2Photos | Gate clerk or security | The set is photographed on a smartphone or placed on a scanner at the gate |
| 3AI checks | Atomic Loops AI layers | OCR reads any layout, printed or handwritten; about 27 to 30 checkpoints per document; every line matched to the PO; LLM cross-check |
| 4GRN number | Your ERP | An automated entry creates the GRN for the inward transaction in SAP, Oracle or Microsoft Dynamics |
| 5Sticker | Gate clerk | GRN sticker on the phone, copies printed with one button, the screen turns green |
| 6Material moves | Warehouse | With its GRN number the material is accepted into the factory |
| 7Exception | Admin, AI co-pilot | A discrepancy goes to the admin: approve, or the co-pilot emails the supplier and follows up until a revised invoice passes the same checks |
Process: as Vinay Phadnis, Co-founder, Atomic Loops, describes it in the recording of 11 Nov 20262617282930323336. Drawing: schematic of an inward gate, not a specific plant; the sticker's fields are not shown.
What it is
GRN automation: a GRN from a photo of the document set
GRN automation is the goods receipt note (GRN) created by software instead of by a clerk: the truck's document set is photographed at the gate, read, checked against the purchase order and posted to the ERP. A clean set gets its GRN number without anyone retyping it; a set with a discrepancy goes to a person.12
In SAP, the GRN is the goods receipt posted against the PO, which the system numbers as a material document. The same flow posts to Oracle or Microsoft Dynamics.34
The worked example
Two trucks at one gate: one GRN in minutes, one held for the supplier
One inward gate at an automotive OEM plant on a weekday first shift, and the two paths our co-founder Vinay Phadnis walks through in the video, a clean document set and a set with a discrepancy.5
Truck A, 08:10. The driver hands over the invoice, lorry receipt, e-way bill and the supplier's ASN number. The security guard photographs them on the gate smartphone and every checkpoint passes against the open PO.67
The GRN number is created in the ERP, the GRN sticker appears on the phone and one button prints copies for the material. The screen turns green, and by 08:16 the load is on its way to the warehouse.67
Truck B, 10:40. Same photos, same checks. Line 3 carries an HSN code that differs from the PO line, and the invoice bills 1,200 pieces against an open PO quantity of 1,000. The set is escalated to the admin, who hands it to the AI co-pilot.89
By 10:48 the supplier has both discrepancies in writing, and the held part is on the planning committee's dashboard with an ETA. The revised, signed invoice arrives at 09:20 next morning, passes the same checks, and Truck B's GRN posts.1011
Two trucks at one gate: one GRN in minutes, one held for the supplier
Truck A's clean set goes from photos to a green screen between 08:10 and 08:16. Truck B's set is escalated, the supplier has both discrepancies in writing by 10:48, and its GRN posts after the revised invoice passes at 09:20 next day.
Times and quantities: illustrative56810. Steps: the clean set and the exception path as recorded7911.
AI impactNobody checked a line by hand on either truck, and Truck B's discrepancy reached the supplier in writing eight minutes after the photos, with an ETA on the dashboard instead of a phone call.10
Why it matters
No GRN, no entry: how one held invoice reaches the production schedule
Vinay's first rule of the inward gate: unless a GRN number is created, the material cannot be accepted into the factory. The same number tracks that raw material or bought-out part from inward through the plant to its finished-good location, so a wrong GRN is a traceability error, not only a receiving error.1213
For inbound logistics at an automotive OEM plant the delay runs in a straight line: a held document set keeps stock out of the warehouse, warehouse stock feeds the production schedule, and a part that is not there becomes unplanned downtime from a stock-out.14
The manual check that guards this gate costs human time on every document, invites human error and leaves room for missed rules and validation checkpoints. Finance carries the result too: under GST the supplier's tax invoice is the plant's document for input tax credit.1516
No GRN, no entry: how one held invoice reaches the production schedule
The delay runs in a straight line from a document discrepancy to a stock-out. Blue marks where the system acts on each link; the tags name what the plant measures.
Chain: as Vinay Phadnis, Co-founder, Atomic Loops, describes it in the recording of 11 Nov 202612131415. Measures: the section's AI impact list.
- Clean sets get their GRN at the gate: measured as time from gate entry to GRN number.
- Held sets are visible with status and ETA: measured as hours each set waits for its GRN.
- Fewer stock-out surprises for planning: counted as stoppages traced to material held at the gate.
The checks
The 27 to 30 checkpoints: what is read on each document, and against what
After the photos, the system checks about 27 to 30 checkpoints within each document, against what Vinay calls nationally verified accounting principles: taxation, HSN codes, part numbers, product and pricing totals.1718
Each document has to pass its own rules, and the invoices and purchase orders, lorry receipt, e-way bill and ASN number have to agree with each other before the set counts as a valid gate entry document.18
GST law is what makes that triangulation possible. A tax invoice must carry the HSN code, description, quantity, taxable value, rate and amount of tax. The e-way bill's Part A repeats the invoice number and date, the value and the HSN code, and carries the transport document number, for a road consignment the lorry receipt (LR).1920
Show as a table
| Checkpoint group | Read from | Checked against | A fail looks like |
|---|---|---|---|
| GST rate and tax amount | invoice lines | PO line, invoice arithmetic | rate on a line differs from the PO |
| HSN code | invoice, e-way bill | PO line, the other documents | code differs from the PO line or between documents |
| Part number | invoice, ASN | PO line | part not on the PO |
| Part quantity | invoice, ASN | open PO quantity | more invoiced than is open |
| Product and pricing totals | invoice | PO price, line and invoice totals | totals do not add up |
| Document identity | invoice, LR, e-way bill, ASN number | each other | invoice or LR number differs across documents |
The checkpoints: what is read on each document, and against what
Six checkpoint groups named in the recording, read from four documents and checked against the PO line and each other. GST law makes the cross-check possible: the e-way bill repeats the invoice's number, value and HSN code and carries the LR number.
Groups: as named in the recording; the full list of about 27 to 30 checkpoints per document is not shown1718. Rules: tax invoice particulars, CGST Rules, rule 4619; e-way bill Part A20; HSN digits21; e-way bill number length, GSTN advisory22.
One detail trips simple rule checks: HSN length depends on the supplier, 4 digits on invoices from suppliers with turnover up to Rs 5 crore and 6 digits above, so a short code is not automatically wrong. India note. E-way bill numbers grow from 12 to 14 digits from 1 January 2027, and GSTN has asked ERP providers and integrators to update their validation rules.212223
Every document set gets the same checks in the same order, whoever is on the gate shift and whatever the supplier's layout.17