OCR - ScanInvoices



OCR module to import supplier invoices

More details


More info

Module version: auto
Publisher/License: Eric Seigne / GPL-v3
Interface language: English
Assistance: https://cap-rel.fr/sav-module-dolibarr/

  • Dolibarr min version: auto
  • Dolibarr max version: auto


  • Go to the Home menu - Configuration - Modules - Deploy an external module and submit the zip
  • The module is then available and can be activated.

Configuration: Follow step by step the documentation

Warning: Currently, a subscription to the ocr.cap-rel.fr service is required to be able to use this module. Consult the prices sheet on ocr.cap-rel.fr/tarifs/ to choose the subscription adapted to your needs .


Links and details

  • For now this module is free :-)
  • Functional fixes to the module based on your feedback and bug reports.
  • An email will be sent to you each time this module is published.
  • Module patches will be released on DoliStore.


version 1.4.30 - 2024-02-03

  • fix multicompany support thanks to eldy
  • fix choose service/product on admin tab
  • add tests against cap-rel / inli global firewall rules
  • fix collision with doliscan module
  • better version check
  • migrate old way conf->global to new getDolGlobal
  • code cleanup thanks to phpstan (thanks to dolibarr devcamp)
  • fix info & status on thirdparty tab thanks to eldy
  • fix security check thanks to eldy
  • fix product list: do not display "closed" products thanks to eldy
  • fix translation file (remove ")
  • new option to disable line imports
  • new drag & drop of pdf files on manual import form (or clic on button but drag
     & drop is easyer)

version 1.4.24 - 2023-11-03

  • fix auto create products

version 1.4.14 - 2023-10-10

  • tons of new things (to be translated)

version 1.4.0 - 2022-02-27

  • public release of 1.3-dev :-)
  • fix 1.4.0 white page bug
  • add rcpc private copy tax
  • fix socid/facid in supplier invoice link
  • fix some CSS conflict when using MD theme
  • fix product search on database (line import)
  • fix undef variable on search products (thanks to Kamel)
  • fix vat code for some products (line extract and docwizon upgrade)
  • full remove bootstrap + fix css (thanks to eldy)
  • enable or disable details import (if server can extract lines)
  • add translations into english, german, spanish, italian
  • better resize pdf file to be well displayed on screen
  • fix take good company when there is 2 companies with same name (and one is closed) (eldy)
  • search third parts take active one in priority (eldy)
  • fix a qpdf call on linux for pdf_scaninvoice_stamp supplier model in case of protected pdf (like freemobile)
  • merge with master+stable-1.0 branches
  • fix php warnings (thanks to eldy) (1.0.38)
  • better css for smartphones (eldy) (1.0.38)
  • fix html tables contents (eldy) (1.0.38)
  • fix #15: add invoice label if exist (1.0.38)
  • fix #30: create a supplier or customer code if dolibarr (1.0.38)
  • is configured with leopard mod (no auto-code generator) (1.0.38)
  • scaninvoicesClean_label (1.0.36)
  • belgium surtax == ecotax (1.0.36)
  • allow negative prices or quantity (1.0.36)
  • clean up utf8 hiphen to minus (1.0.36)
  • add "now" button thanks to eldy (1.0.36)
  • better display (css fixes) on smartphone thanks to eldy (again) (1.0.36)
  • implement belgium "surtax" on lines (1.0.31)
  • fix multiline import (supplier ref with spaces) : remove spaces (1.0.30)
  • fix search for product on supplier ref, not only own refs (1.0.30)
  • fix date convert error on manual import (ex with 01/08/2022 or 08/01/2022) (1.0.28)
  • fix css (1.0.27)
  • add "manual import" button on import details (1.0.27)
  • fix manual import flow (flow was dead on one race situation) (1.0.27)
  • thanks to eldy, start multicompany compatibility (1.0.27)
  • new feature : support for DEE + ECOTAX invoices
  • new feature : add supplier 'template' to extract first page and add number on it for printing only miminal paper for accounter archives
  • big step to 2.0 : import lines tests is working for some suppliers (contact us for details)
  • thanks to eldy : Fix the goback page after creation of a scaninvoice setting.
  • thanks to eldy : Fix PHP8 + Multientity support + some CSS fixes
  • fix flow bugs when supplier -> import invoice on smartphone, take picture -> resume on computer


version 1.0.28 - 2022-08-04

  • fix date convert error on manual import (ex with 01/08/2022 or 08/01/2022)
  • fix css
  • add "manual import" button on import details
  • fix manual import flow (flow was dead on one race situation)
  • thanks to eldy, start multicompany compatibility

version 1.0.26 - 2022-07-25

  • add some checks agains php depends functions
  • add a new feature on supplier invoices : a new template "pdf_scaninvoice_stamp" : extract first page of supplier invoice, add dolibarr reference then you can print it for your paper-archives
  • fix white page on config default product (thanks to eldy)

version 1.0.22 - 2022-06-03

  • fix a bug with default product in some race conditions (id=83 or id=idprod_83)
  • fix glitches on 4/3 screen (manual import) (1.0.21)
  • add a new import settings from a nextcloud share : just drop all your invoices (pdf files) and ScanInvoices will get it in background, please have a look to cron tasks "ScanInvoices" (1.0.20)
  • add a new select dropdown on automatic import : you can now "force" a supplier to be used on automatic import (please drag & drop only invoices or the same supplier) (1.0.20)

version 1.0.18 - 2022-04-27

  • add a import invoice from scaninvoice card on supplier section
  • fix (i hoppe) default choice for product on manual import
  • big step about jpeg / picture upload from smartphone
  • better dropdown list about default products
  • add smartphone camera support on upload (experimental)
  • add touch event support for smartphone (experimental)
  • add "import invoice" on supplier scaninvoice card
  • add a new test for success or not and restart / re-upload import of bad invoices
  • add a new select box on manual import to choose a product to apply for  that invoice (priority above default product)
  • add a prefix on each scaninvoice function (php) to avoid collision with others modules
  • push all data on manual import submit (even if field is readonly)
  • fix css position on some screen resolutions (1.0.15)


version 1.0.12 - 2022-04-06

  • thanks to eldy: fix a SQL database type bug (timestamp)
  • add a new message in case of server unavailable or upgrade in progress
  • fix #20 : in case of manual import: do not redo ocr on unchanged zones
  • add services as module depends
  • add due_date if found
  • better vat % search
  • fix a divider by zero case
  • add language chooser on manual import for invoices in other languages
  • add a new scheduler task to create a payment of supplier invoices if
    1. you specify CB or LCR or PREV as payment mode
    2. payment due date is over
    3. invoice is validated

Version 1.0.9 - 2022-03-15

  • fix a race condition when account was disabled server side (or remote api key reached end of life)
  • set a default firstname/lastname in case of local dolibarr user does not have one
  • add swiss companies auto create if VAT number found like french & belgium
  • start allow of xml upload for peppol e-invoices