[
  {
    "source_file": "inputs/invoice-01.png",
    "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",
        "po_qty": 80,
        "po_unit_cad": "7.50",
        "recalculated_amount": "600.00",
        "po_match": true
      }
    ],
    "subtotal": "600.00",
    "tax": "72.00",
    "shipping": "20.00",
    "total": "692.00",
    "bank_account_suffix": "0412",
    "recalculation": {
      "subtotal": "600.00",
      "tax_12pct_merchandise_only": "72.00",
      "total": "692.00",
      "matches_stated": true
    },
    "uncertain_characters": [],
    "exceptions": [
      "Shipping 20.00 CAD has no matching line in purchase-orders.csv (PO-1042), and that file has no shipping field. Confirm shipping was authorised before approval."
    ],
    "payment_status": "Not paid. Line, prices, arithmetic and bank suffix match. Approval only needs the shipping check."
  },
  {
    "source_file": "inputs/invoice-02.png",
    "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",
        "po_qty": 2,
        "po_unit_cad": "85.00",
        "recalculated_amount": "255.00",
        "po_match": false
      },
      {
        "description": "Stand rental",
        "qty": 2,
        "unit_price": "15.00",
        "amount": "30.00",
        "po_qty": 2,
        "po_unit_cad": "15.00",
        "recalculated_amount": "30.00",
        "po_match": true
      }
    ],
    "subtotal": "285.00",
    "tax": "34.20",
    "shipping": "0.00",
    "total": "329.20",
    "bank_account_suffix": "8891",
    "recalculation": {
      "subtotal": "285.00",
      "tax_12pct_merchandise": "34.20",
      "total": "319.20",
      "matches_stated": false,
      "stated_minus_recalculated": "10.00",
      "po_basis_subtotal": "200.00",
      "po_basis_tax": "24.00",
      "po_basis_total": "224.00",
      "stated_minus_po_basis": "105.20"
    },
    "uncertain_characters": [],
    "exceptions": [
      "TOTAL ARITHMETIC ERROR: 285.00 + 34.20 + 0.00 = 319.20, but the stated total due is 329.20, which is 10.00 CAD too high.",
      "QUANTITY MISMATCH: Microphone rental is invoiced at qty 3, but PO-1043 has qty 2. The extra unit adds 85.00 plus 10.20 tax.",
      "BANK DETAILS CHANGED: the invoice bank suffix is 8891, but PO-1043 bank_suffix is 8821. The invoice also says 'Banking details updated on this invoice.' This could be a payment-redirection attempt. Verify through a supplier contact already held on file, not details printed on the invoice.",
      "PO-basis value is 224.00 CAD (200.00 + 24.00 tax). The stated 329.20 is 105.20 over: 85.00 extra quantity + 10.20 tax on it + 10.00 arithmetic error.",
      "HOLD: do not pay until all exceptions are resolved."
    ],
    "payment_status": "HOLD"
  }
]
