Back to articles

Tools & solutions

How Our AI Maps Every Scanned Receipt to the Right Category Label and General Ledger Codes

By the ScanCompta teamUpdated on 7 min read

At 9:00 PM on a Tuesday, Bastien, a heating contractor in Rennes, snaps a Point.P supplier receipt using a free mobile PDF scanner app. Great image. Crisp edges. Two weeks later, staring at his monthly spreadsheet, he cannot remember whether that €45.00 went toward small tools (`606300`), job-site supplies, or van maintenance.

He just paid the time tax twice. Once to scan it. Once to classify it.

When we started engineering ScanCompta, we set one hard product rule: software should never force a tradesperson or sales rep to think like a bookkeeper at the moment they pay a bill. Here is a look behind the scenes at how our AI detects the exact expense label at capture time — and translates it straight into accounting ledger entries.

The real flaw in generic OCR scanners: reading text doesn't equal accounting

Quick answer: Generic scanning apps extract little more than a date and `TOTAL €45.00`. They leave the hardest job to humans: figuring out the tax nature of the purchase and hunting down the right French general ledger account (`625100`, `625600`, or `606400`).

Let's be honest: turning a crumpled thermal slip into readable text is no longer impressive in 2026. Dozens of free apps crop paper edges and output decent PDFs. Yet the moment French bookkeeping compliance enters the picture, those apps stop right where your actual headache begins.

Look at consumer PDF scanners. As we detailed when reviewing a CamScanner alternative built for expense reports or comparing an Adobe Scan accounting alternative, raw OCR drops an uncategorised file in your lap. It reads "TOTAL €45.00" — then leaves you staring at an empty dropdown.

The exact same bottleneck hits users testing a Microsoft Lens alternative for expense reports: great at straightening an A4 page, completely blind to the accounting line between unleaded petrol on the motorway, a US cloud software bill, and a 10%-VAT client lunch.

In the real world, an electrician, ride-share driver, or field consultant does not carry the French General Chart of Accounts (ANC) in their head. Nobody sitting in a delivery van wants to debate `625100` (*Voyages et déplacements*) versus `625600` (*Missions*) versus `606400` (*Fournitures administratives*) before turning the ignition.

ScanCompta's "3-in-1" architecture: 1 visible label = 1 expense account + 1 VAT code

Quick answer: Instead of forcing two confusing dropdowns ("Category" and "Accounting Code"), ScanCompta merges them into one unified selector. Behind each simple human label (Restaurant, Fuel, Hotel, Supplies), our database automatically links the readable label, Class 6 expense code, and `445660` VAT ledger account.

During early usability sessions on our receipt OCR scanner, one flaw surfaced repeatedly across competing finance tools: separating the analytical "Category" field from the accounting "Ledger Code" field.

Put two independent inputs side by side — "Category: Restaurant" next to "Ledger Code: 625600" — and two errors happen reliably. Either field staff skip the ledger dropdown completely, or they switch the category to "Fuel" while leaving `606400 Supplies` selected from the previous scan.

Instant mismatch.

So we engineered our data model the opposite way from day one: a "3-in-1" unified category engine. Users interact with a single plain-language label that quietly carries both ledger identifiers required by your CPA:

Visible scan label (field user)Layer 1: Human labelLayer 2: French PCG expense code (Class 6)Layer 3: Linked VAT account
RestaurantObvious to any staff member`625600` (*Missions et réceptions*)`445660` (Deductible input VAT)
FuelMatched at the pump`625100` or `606140` per company policy`445660` (applied per fuel VAT rules)
HotelBusiness travel lodging`613500` or `625100``445660` (unticked by default for non-deductible room stays)
TransportRail, airfare, taxi, Uber`625100` (*Voyages et déplacements*)`445660` (or €0 on exempt passenger transport)
SuppliesStationery, small gear`606400` (*Fournitures administratives*)`445660` (20% recoverable VAT)
Tolls / ParkingMotorway & city garages`625100` or `625600``445660` (20% recoverable VAT)
SubscriptionsSoftware, SaaS, mobile plans`651000` or `613500``445660` (or reverse-charge flag for foreign vendors)
ScanCompta 3-in-1 category mapping linking visible label to French expense code 625600 and VAT 445660

Zero duplicate selection. Zero drift between what operations sees on mobile and what your chartered accountant imports into their ledger.

How does our AI inspect a receipt to predict the right category on every scan?

Quick answer: ScanCompta's AI never guesses from a single keyword. It cross-checks four live signals on every scanned document — merchant identity, detailed line-item wording, French VAT rate breakdown (5.5%, 10%, 20%), and active folder context — delivering surgical accounting categorisation straight from your phone camera.

How do you keep a supermarket receipt for two packs of printer paper from being classified as "Meals"? Or stop a petrol station receipt containing a coffee from landing in the wrong ledger bucket?

Our prediction pipeline refuses to rely on brand names alone. Instead, it cross-references four layers of signals the moment an image hits our servers:

  • Merchant header & business activity clues: our parser identifies major French and European merchants (TotalEnergies, SNCF, Vinci Autoroutes, Leroy Merlin, OVH, Orange) alongside legal clues printed in the receipt header or footer (business suffixes like *SARL Brasserie*, *Hôtel-Restaurant*, or French NAF activity identifiers).
  • Line-item semantic parsing: here is where real accuracy comes from. Spot *"Gazole B7"* or *"SP95-E10"* on a Carrefour hypermarket receipt, and the scan drops cleanly into Fuel, never groceries. Words like *"Menu du jour"*, *"Formule midi"*, or *"Espresso"* trigger Restaurant. *"Péage Classe 1"* signals Tolls / Parking, while *"Licence mensuelle"* or *"Monthly plan"* flags Subscriptions.
  • French VAT rate fingerprint: VAT breakdown instantly reveals purchase intent. Seeing 10% alongside 20% on one slip almost always indicates dine-in restaurant service; 5.5% points toward takeaway food; a single 20% line with non-food items aligns with Supplies, equipment, or software services.
  • Live folder & custom chart-of-accounts context: every classification request injects your workspace's actual active categories into the AI context. If an employee scans inside a construction site folder where custom trade labels exist, the AI predicts directly from your company's exact category list rather than generic defaults.

Honestly, those four checks solve 95% of ambiguous receipts before your finger even leaves the screen. And if your field crews handle mixed hardware store invoices, see our practical walkthrough on organising construction materials invoices without cluttering your bookkeeping.

AI receipt parser analyzing vendor lines VAT rates and folder context for French accounting codes

Custom categories: adapting immediately to your company's specific chart of accounts

Quick answer: Every French accounting firm uses its own sub-account lengths (6-, 7-, or 8-digit codes like `62560001`, plus trade-specific labels). Workspace admins can edit default ledger codes or add custom categories once: they appear instantaneously during AI scanning, dashboard filtering, and Debit/Credit exports.

On paper, every French company follows the same Plan Comptable Général. Step inside two chartered accounting firms ten streets apart, and you will rarely see identical sub-account numbers.

One CPA posts everything to `625600`. Another enforces eight digits (`62560010` for staff lunches, `62560020` for client entertainment). A building contractor wants "Site Materials" mapped to `601000`; a digital agency needs "Subcontractors" under `611000` or "Paid Ads" under `623100`.

In rigid expense apps, you either settle for "Miscellaneous Expenses" or file a support ticket.

In ScanCompta, company administrators control every line right from workspace settings:

  • Edit the expense ledger code and VAT account on any built-in category at any time.
  • Create unlimited custom labels tailored to your industry ("Site Materials", "Subcontractors", "Client Gifts", "Small Tools") with the exact 6-, 7-, or 8-digit codes your CPA expects.
  • Put custom categories to work immediately: the AI model picks up newly created labels on the very next scan, correctly routing timber or plumbing hardware bills to your trade bucket instead of generic supplies.
  • Filter dashboards, track category spend, and generate balanced Debit/Credit Accounting Journal CSVs using your custom accounts automatically — while still keeping audit-ready digital copies compliant with French legal receipt photo requirements and Légifrance standards.

Bottom line: ScanCompta's AI learns your company chart of accounts in one second — with zero consulting fees or manual training phases.

Curious how accurately our AI classifies your real receipts? Grab five tickets off your desk and test instant category plus ledger code detection now.

*Technical article updated on 16 November 2026 based on ScanCompta's live AI categorisation and general ledger export architecture.*

The stray-receipt challenge

Curious how the AI handles it? Take a photo of the receipt lying on your desk and test the extraction in 2 seconds, no account needed.

Try the scan live

No account needed. Nothing is stored.

Demo

No account needed. Nothing is stored.

Frequently asked questions

What separates ScanCompta's accounting AI from standard OCR scanners?

Generic OCR tools stop at reading printed characters (date and total amount) to output a PDF. ScanCompta's AI identifies purchase intent, sets the right expense category, and extracts net, split VAT, and exact French PCG ledger codes (`625...` + `445660`) automatically.

Do field staff need to know French Plan Comptable Général codes?

No. With our 3-in-1 mapping design, employees only select human-readable labels ("Restaurant", "Fuel", "Tolls"). General ledger numbers stay hidden cleanly behind the scenes until accounting export time.

Can we create custom categories using 7- or 8-digit ledger codes?

Yes. You can customise default codes and add unlimited trade-specific labels ("Site Materials", "Subcontractors") with the exact 6-, 7-, or 8-digit codes required by your CPA. They work immediately across AI scanning and Debit/Credit exports.

How does the AI handle mixed-item receipts like supermarkets or service stations?

Rather than relying solely on the store brand, our parser inspects line-item keywords ("Diesel", "Menu du jour", "A4 Paper") alongside VAT rate splits (5.5%, 10%, 20%) to assign the proper category accurately.

Test ScanCompta's OCR with your own receipts

Snap a crumpled receipt, a fuel invoice or a restaurant bill: the AI extracts the date, the amount and the VAT in two seconds. 5 free scans a month, no card required.

ScanCompta

About the team

The ScanCompta team

ScanCompta designs simple tools to help French freelancers, tradespeople and self-employed professionals manage expense reports and accounting receipts effortlessly.

Discover ScanCompta →

Questions & comments

A question about this guide? Ask below — I answer personally within one business day.

  • J

    Julien

    If I lose a €9 toll receipt, can I still claim it with just a bank statement?

    ScanComptaScanComptaAuthor

    Yes — for a small amount, a bank statement plus a signed statement is usually accepted. You cannot reclaim VAT without the original receipt though.

  • S

    Sonia

    Do I need to keep the paper receipts after scanning them with your app?

    ScanComptaScanComptaAuthor

    No. If the scan is a faithful and durable copy, the digital version is enough. We store everything for 10 years for you. Order of 22 March 2017 on reliable copies