[
  {
    "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.5,
        "amount": 600.0,
        "po_qty": 80,
        "po_unit_cad": 7.5,
        "recalculated_amount": 600.0,
        "po_match": true
      }
    ],
    "subtotal": 600.0,
    "tax": 72.0,
    "shipping": 20.0,
    "total": 692.0,
    "bank_account_suffix": "0412",
    "recalculation": {
      "subtotal": 600.0,
      "tax_12pct_merchandise_only": 72.0,
      "total": 692.0,
      "matches_stated": true,
      "po_bank_suffix": "0412",
      "bank_suffix_match": true
    },
    "uncertain_characters": [],
    "exceptions": [
      "VERIFY (low): Shipping of 20.00 CAD has no matching line in inputs/purchase-orders.csv row PO-1042, and the CSV has no shipping column. Confirm shipping was authorised before approval."
    ],
    "payment_status": "Not paid. The line item, unit price, arithmetic and bank suffix all match PO-1042. 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.0,
        "amount": 255.0,
        "po_qty": 2,
        "po_unit_cad": 85.0,
        "recalculated_amount": 255.0,
        "po_match": false
      },
      {
        "description": "Stand rental",
        "qty": 2,
        "unit_price": 15.0,
        "amount": 30.0,
        "po_qty": 2,
        "po_unit_cad": 15.0,
        "recalculated_amount": 30.0,
        "po_match": true
      }
    ],
    "subtotal": 285.0,
    "tax": 34.2,
    "shipping": 0.0,
    "total": 329.2,
    "bank_account_suffix": "8891",
    "recalculation": {
      "subtotal": 285.0,
      "tax_12pct_merchandise": 34.2,
      "total": 319.2,
      "matches_stated": false,
      "stated_minus_recalculated": 10.0,
      "po_basis_subtotal": 200.0,
      "po_basis_tax": 24.0,
      "po_basis_total": 224.0,
      "stated_minus_po_basis": 105.2,
      "po_bank_suffix": "8821",
      "bank_suffix_match": false
    },
    "uncertain_characters": [],
    "exceptions": [
      "TOTAL ARITHMETIC ERROR: Subtotal 285.00 + Tax 34.20 + Shipping 0.00 = 319.20, but the invoice states 'Total due: 329.20'. The stated total is 10.00 CAD too high.",
      "QUANTITY MISMATCH: Microphone rental is invoiced at qty 3, but inputs/purchase-orders.csv row PO-1043 has qty 2. The extra unit adds 85.00 plus 10.20 tax.",
      "BANK DETAILS CHANGED: the invoice says 'Bank account ending: 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. Confirm the change through a supplier contact already held on file, not details printed on the invoice.",
      "The PO-basis value is 224.00 CAD (200.00 + 24.00 tax). The stated 329.20 is 105.20 over that: 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"
  }
]
