Invoice entry in Business Central, automated
The Snehin Check Request Helper reads vendor invoice PDFs from the check-request workflow at Associated Students, Inc., CSULB and enters them into Microsoft Dynamics 365 Business Central, field by field. No API was available, so it works the screen the way a person would. I built it and maintain it, and it runs every day in the Business Office.
The problem
Every check request arrives as a PDF. Someone had to read it and type each field into Business Central: vendor, invoice number, date, GL account, department, amount and description. That took 3–5 minutes an invoice and 200–400+ keystrokes, for an office that serves 500+ campus organizations.
How it works
Read. Layout-preserving extraction with pdfplumber and PyMuPDF pulls the vendor, invoice number, date, line items and totals from real, inconsistently formatted PDFs.
Check. It flags invoices that were already entered, cleans and standardizes GL account codes, and shows every parsed field in a review panel before anything runs.
Enter. One hotkey (F8) types the entry into Business Central in a configurable field order; Alt+F8 runs vendor entry.
Record. It renames the source PDF to a standard name and writes a CSV log of every processed invoice for reconciliation and audit.
Controls
- A person reviews every parsed field in the review panel before the entry runs.
- Duplicate detection stops the same invoice going in twice.
- A CSV log of every processed invoice supports reconciliation and audit.
Built for the office
The people who use it aren't developers, so it's a desktop app with a dark interface, a color-coded live log of every parse, entry and error, and two hotkeys that work from anywhere on screen.
Stack
Python 3.13 · tkinter · pdfplumber · PyMuPDF · pyautogui · keyboard · Pillow. Target system: Microsoft Dynamics 365 Business Central.