All the scenariosFinance and administrationFatturaPA ExtractionHard case
The credit note whose amounts are written positive
The situation
The supplier issues a TD04 credit note partly reversing a June invoice, and in the XML the amounts are written positive: it is the document type that makes them a credit. The Causale also quotes the credited invoice's own grand total, which is the most believable wrong number in the file.
The documents
The same files the agent was handed. Open them before you read the rest: the names, addresses and VAT numbers are invented, the structure is not.
What the agent does
The same four phases as every run, in order. In the console you watch them go by one at a time, with the credits beside them.
- 01DiagnoseReads the input and decides what the job actually is.
- 02AssemblePicks tools, data sources and the model you chose.
- 03ActDoes the work. Anything that leaves the building waits for approval.
- 04AssessChecks its output against your rules before settling credits.
The tools it used
Read off the recording of the run, not off a feature list.
- Read the document
- Extract the fields
- Check the result
- Save the result
The result
Result being recorded
This scenario is ready, but its real run has not been recorded yet. Until it has, there is nothing to show here: we would rather print one honest line than a fake result.
What to look for
A credit of 960.80 € on invoice 2026/FT-0248, not a debt: the amounts stay positive as the XML writes them and it is the TD04 that gives the sign. The invoice's stamp duty is not reversed; the note carries its own, borne by the supplier.