Invoice against previous invoice: silent price increases, new items and quantity jumps from the same supplier, with questions
compare_invoicesTakes the items of the previous invoice and of the new invoice from the same supplier and matches them by description, otherwise by item number. Returns every item that is more expensive than last time (red: was this announced?), new items (yellow), quantity changes with jumps over 20 percent flagged, cheaper and no longer billed items, the split of the difference into price, quantity, new and dropped, ready questions for the supplier and the next step. Pass two arrays (old_rows for the previous invoice, new_rows for the new one) or one array rows with a version column (Old or New; German: Alt or Neu). To check an invoice against order and goods receipt use match_documents or check_invoice. Licence, or one free check every 30 days.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "compare_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Alternative to old_rows and new_rows: one list with a version column (Old or New) plus the columns above. | |
| language | No | Language of the answer. Default de. | |
| new_rows | No | New invoice with the same columns. | |
| old_rows | No | Previous invoice: position (item number), description, quantity, unit_price, optionally total. German column names work too. |