A fictional worked example · TableCheck preview
The quote looks finished.
Check the numbers next.
Use a deterministic arithmetic check before handing an agent-generated line-item table to a person. This example shows exactly what it catches—and what still needs human review.
Run this example locallyStart with the supplied rows.
All figures and IDs below are fictional. The quote declares a total of USD 69.90.
| Row | ID | Quantity | Unit price | Supplied line total |
|---|---|---|---|---|
| 1 | line-1 | 2 | USD 19.95 | USD 39.90 |
| 2 | line-2 | 3 | USD 10.00 | USD 25.00 |
| 3 | line-2 | 1 | USD 5.00 | USD 5.00 |
- Check multiplication. Row 2 should be 3 × USD 10.00 = USD 30.00. The supplied USD 25.00 is USD 5.00 lower.
- Check row IDs. Rows 2 and 3 both use
line-2. Review whether they are distinct source lines, then assign unique IDs if appropriate. - Recalculate the total. The supplied line totals sum to USD 69.90, so summing them alone misses the row error. Recalculating quantity × price gives USD 74.90. The USD 5.00 total difference reflects the same row error; it is not another USD 5.00 loss.
Give your agent a precise export request.
Copy this prompt into the agent that produced the table. Use fictional or non-sensitive data in the preview.
Export this quote as JSON with exactly these top-level fields: rows, declared_total and currency. Each row must contain id, quantity, unit_price and line_total. Keep the original supplied line totals; do not silently fix them during export. Use unique row IDs when the source provides them. Quantities must be nonnegative whole-number strings. Amounts must be nonnegative decimal strings with at most two decimal places. Currency must be USD, EUR or GBP. Include no more than 100 rows. Flag any source value you cannot represent rather than inventing it. After the local checker runs, review each inconsistency against the source before making corrections. A passing arithmetic check does not establish that the source values are true.
Paste the export into the local checker · Read the example JSON · Download the local checker
Keep the limits visible.
This preview does not check the original quote, verify a supplier or price, calculate tax or discounts, parse PDF or XLSX files, evaluate spreadsheet formulas, convert currencies, or approve spending. Fractional quantities, negative amounts and other currencies are outside its current scope. A person remains responsible for source review and the final decision.