If someone in your business types supplier invoices into PHC or Primavera by hand, most of that typing can now be done by an AI model reading the invoice. What cannot be handed over is the judgement: which supplier this really is, whether the amount was agreed, and what to do when the invoice and the order disagree. This piece walks through the task at the level of decisions, so you can tell whether it is worth doing in your business and what to ask before you start.
We have already looked at where finance automation pays back across payables, receivables and close (AP, AR, and close). This one is narrower: one task, in two accounts systems that many companies operating in Portugal run.
The task, as it is done today
A supplier invoice arrives, usually as a PDF by email, sometimes on paper, sometimes in the supplier's own portal. Someone opens it, finds the supplier's NIF, the invoice number, the date, the lines, the VAT rates and the total, and keys them into a purchase document. At month end, someone else checks those purchases against what suppliers have communicated to the Tax Authority's e-Fatura portal, and chases the gaps.
None of this is hard. It is slow and repetitive, and the errors surface weeks later, at close or at the VAT return.
What the AI reads
A current model such as Claude, GPT or Gemini can read an invoice PDF or a photo and return the fields a purchase document needs: supplier name and NIF, invoice number and series, issue date, each line with quantity, unit price and VAT rate, and the totals.
What it handles well: layouts it has never seen before, and totals that sit somewhere unexpected.
What it does not do: know your business. It does not know that two suppliers share a trading name, that one supplier always invoices transport separately, or that a cost coded one way last year belongs to a project now. That knowledge lives with your team and in your accounts system, which is why the next step matters more than the reading.
What gets checked before anything is written
Reading is the easy part. The value sits in the checks between reading and writing. At the level of decisions, these are the ones we would expect any setup to make:
- Is this supplier already in the system? Match on NIF, not on name. A new NIF means a new supplier, and creating one is a person's decision.
- Have we seen this invoice before? The same supplier, number and total arriving twice, once by email and once by post, is a classic way to pay twice.
- Does the arithmetic hold? Lines, VAT and total should add up. When they do not, either the reading is wrong or the invoice is, and both need a person.
- Does it match what was ordered or received? Where you raise purchase orders or record goods receipts, the invoice is compared against them. A price or quantity outside what was agreed is not something software should accept on its own.
- Is the VAT treatment plausible for this supplier and these goods? Reverse charge, exempt lines and mixed rates are where a confident wrong answer costs most.
Anything that passes goes into the accounts system as a draft purchase document. Anything that fails, or that the model was unsure about, goes to a review queue with the reason attached. Nothing is guessed.
Writing into PHC or Primavera
How the data gets into the accounts system depends on what you run.
For Primavera, Cegid documents a Web API for version 10, organised by the ERP's functional modules, purchases and accounting among them. Whether your installation has it switched on, and which services a given user may reach, is set by your ERP administrator.
For PHC, the route in depends on the edition (PHC CS installed, or PHC GO in the cloud) and on your licence. We confirm it by looking at the installation, rather than assuming.
In both cases we would write invoices as drafts, not posted documents, until the team trusts the checks. Posting stays a decision.
Reconciling against e-Fatura
Invoice issuers in Portugal must communicate their invoices to the Tax Authority by the 5th of the following month, according to the Portal das Finanças e-Fatura FAQs. That gives you a second, independent list of what you should have received.
Once purchases are in your system, a monthly comparison against e-Fatura shows three things: invoices the Tax Authority holds that you have not registered, invoices you registered that the supplier has not communicated, and amounts that differ. Each one is a person's call: chase the supplier, find the missing PDF, or correct your own record.
Information, not legal advice. Checked on 2 December 2026 against the Portal das Finanças e-Fatura FAQs.
What a person still decides
- Creating a new supplier.
- Accepting an invoice that does not match the order.
- Everything in the review queue, and whether the reason it landed there was right.
- VAT treatment that is not routine.
- Posting, and the month-end sign-off.
If a setup does not leave these with a named person on your team, it is not finished.
What it costs to get wrong
A misread total is caught by the arithmetic check. A duplicate is caught by the duplicate check. The expensive failures are the quiet ones: an invoice matched to the wrong supplier because the names were similar, a VAT rate read correctly from the wrong line, or a review queue that grows until someone starts approving it in bulk. That last one is how a working system stops working without anyone noticing. Decide who empties the queue, and how often, before you decide anything else.
Before you do this yourself
- How many supplier invoices arrive a month, and from how many suppliers? A handful of suppliers sending the same layout is a different job from hundreds of one-offs.
- Which edition and version of PHC or Primavera do you run, and does your licence include a way to write documents in?
- Do you raise purchase orders or record goods receipts? Without them, the order check has nothing to compare against.
- Where do invoices arrive today, and can they all be collected in one place?
- Who owns the review queue, and who covers it when they are on holiday?
- Where may invoice data be processed? Invoices from sole traders name a person, so check which model provider and which region your data policy allows.
- How will you know it is still working in month three, not just in week one?
If you have the answers and want the task scoped, built and tested at a fixed price, this is the problem we describe here: Stop typing invoices into your accounts system.