[
  {
    "supplier": "Cedar Print",
    "invoice_number": "000742",
    "invoice_date": "2026-10-18",
    "po": "PO-1042",
    "currency": "CAD",
    "line_items": [
      {
        "description": "Workshop handbooks",
        "qty": 80,
        "unit_price": "7.50",
        "amount": "600.00"
      }
    ],
    "subtotal": "600.00",
    "tax": "72.00",
    "shipping": "20.00",
    "total": "692.00",
    "recalculated_total": "692.00",
    "bank_account_suffix": "0412",
    "exceptions": [
      {
        "severity": "info",
        "field": "shipping",
        "detail": "Shipping 20.00 CAD is charged but inputs/purchase-orders.csv (PO-1042) contains no shipping terms, so it cannot be verified against the PO. Invoice footnote states shipping is tax exempt in this exercise; tax correctly excludes shipping.",
        "action": "Confirm freight charge was agreed before payment."
      }
    ],
    "checks": {
      "line_amounts": "OK: 80 x 7.50 = 600.00",
      "subtotal": "OK: line sum 600.00",
      "tax": "OK: 12% of 600.00 = 72.00",
      "total": "OK: 600.00 + 72.00 + 20.00 = 692.00 matches printed total",
      "po_qty_price": "OK: qty 80 and unit 7.50 match PO-1042 row",
      "bank_suffix": "OK: 0412 matches PO-1042 bank_suffix"
    },
    "source_image": "inputs/invoice-01.png",
    "legibility": "All characters legible; no uncertain fields."
  },
  {
    "supplier": "Harbour AV",
    "invoice_number": "001083",
    "invoice_date": "2026-10-19",
    "po": "PO-1043",
    "currency": "CAD",
    "line_items": [
      {
        "description": "Microphone rental",
        "qty": 3,
        "unit_price": "85.00",
        "amount": "255.00"
      },
      {
        "description": "Stand rental",
        "qty": 2,
        "unit_price": "15.00",
        "amount": "30.00"
      }
    ],
    "subtotal": "285.00",
    "tax": "34.20",
    "shipping": "0.00",
    "total": "329.20",
    "recalculated_total": "319.20",
    "bank_account_suffix": "8891",
    "exceptions": [
      {
        "severity": "high",
        "field": "total",
        "detail": "Printed total due 329.20 does not equal subtotal 285.00 + tax 34.20 + shipping 0.00 = 319.20; overstated by 10.00 CAD.",
        "action": "Do not pay printed total; request corrected invoice."
      },
      {
        "severity": "high",
        "field": "bank_account_suffix",
        "detail": "Invoice shows bank account ending 8891; inputs/purchase-orders.csv PO-1043 rows record 8821. Invoice footnote claims 'Banking details updated on this invoice.' Unverified bank-detail change is a payment-diversion red flag.",
        "action": "Hold payment; verify bank change via an independently known supplier contact (not contact details on the invoice). No contact was made in this exercise."
      },
      {
        "severity": "high",
        "field": "line_items[0].qty",
        "detail": "Microphone rental billed qty 3 vs PO-1043 qty 2: one extra unit at 85.00 (+85.00 merchandise, +10.20 tax, +95.20 total vs PO). Unit price 85.00 matches PO.",
        "action": "Verify delivery/receipt of a third microphone or an approved PO amendment before paying the extra unit."
      }
    ],
    "checks": {
      "line_amounts": "OK: 3 x 85.00 = 255.00; 2 x 15.00 = 30.00",
      "subtotal": "OK: 255.00 + 30.00 = 285.00",
      "tax": "OK: 12% of 285.00 = 34.20",
      "total": "FAIL: recalculated 319.20 vs printed 329.20",
      "po_qty_price": "FAIL: Microphone rental qty 3 vs PO 2; Stand rental qty 2 and both unit prices match PO-1043",
      "bank_suffix": "FAIL: 8891 vs PO 8821"
    },
    "po_expected": {
      "subtotal": "200.00",
      "tax": "24.00",
      "shipping": "0.00",
      "total": "224.00"
    },
    "source_image": "inputs/invoice-02.png",
    "legibility": "All characters legible; no uncertain fields."
  }
]
