Help
How to use the PaintCo Invoice Classifier
Overview
This system automatically classifies supplier invoice line items as paint or materials. It replaces the manual process of splitting paint vs sundries charges for subcontractor recharges.
How It Works
2
PDF extracted
Line items are parsed from the invoice PDF
3
Classification
Each item is classified as paint or materials using keyword matching
4
Register updated
Results are appended to Invoice_Register.xlsx
5
SharePoint sync
The register is uploaded to your SharePoint site
Manual Upload
- Go to the Classifier page
- Drag & drop a PDF invoice onto the upload area, or click to browse
- Click Classify Invoice
- Review the line items — each shows its category and price
- Items flagged Review need manual verification
Automatic Email Processing
- Go to Settings
- Enter your Microsoft 365 credentials (Tenant ID, Client ID, Secret)
- Enable Email Monitoring and check Use Graph API
- Enter the email address (e.g. [email protected])
- Click Save Email Settings then Start Polling
New invoices are automatically detected, classified, and synced to SharePoint within 60 seconds.
SharePoint Setup
- Go to Settings → SharePoint section
- Enter your Tenant ID, Client ID, and Client Secret
- Set the Site URL (e.g. https://paintco.sharepoint.com/sites/Finance)
- Click Save SharePoint Settings
After each classification, the register is automatically synced to SharePoint.
Understanding the Classification
Paint items include: paint, primer, sealer, undercoat, topcoat, stain, varnish, lacquer, thinners, activators, hardeners, and any volume-based products (litres).
Materials items include: rollers, brushes, tape, buckets, trays, drop sheets, poles, sandpaper, PPE, fillers, caulk, masking film, and other non-paint supplies.
Excel Register Structure
The workbook has two sheets:
All Items — One row per line item with DateReceived, WeekCommencing, Supplier, InvoiceNumber, InvoiceDate, JobRef, Description, Qty, UnitPrice, LineTotal, Category, Currency, Status.
Weekly Summary — Auto-calculated totals per week using SUMIFS formulas.
Error Handling
- Items with Review status need manual verification (low item count or missing descriptions)
- Failed invoices are logged to a "Failed Invoices" sheet in the register
- Use the Process Inbox button to manually process files in the watch directory