[
  {
    "source_image": "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",
        "quantity": 80,
        "unit_price": "7.50",
        "amount": "600.00",
        "recalculated_amount": "600.00",
        "po_comparison": {
          "source": "inputs/purchase-orders.csv — PO-1042 / Workshop handbooks",
          "quantity": 80,
          "unit_price": "7.50",
          "quantity_difference": 0,
          "unit_price_difference": "0.00"
        }
      }
    ],
    "subtotal": "600.00",
    "tax": "72.00",
    "shipping": "20.00",
    "total": "692.00",
    "bank_account_suffix": "0412",
    "exceptions": [
      {
        "code": "SHIPPING_AUTHORIZATION_NOT_EVIDENCED",
        "detail": "CAD 20.00 shipping is shown on the invoice but the supplied PO CSV has no shipping field or approval. Verify authorization before payment; this is an evidence gap, not a proven overcharge.",
        "evidence": [
          "inputs/invoice-01.png — INVOICE 000742, Shipping and footer",
          "inputs/purchase-orders.csv — PO-1042 / Workshop handbooks"
        ]
      }
    ],
    "evidence": [
      "inputs/invoice-01.png — INVOICE 000742, header (supplier, invoice date, purchase order, currency), line table, totals, bank account ending and footer",
      "inputs/purchase-orders.csv — PO-1042 records"
    ],
    "reconciliation": {
      "recalculated_subtotal": "600.00",
      "recalculated_tax": "72.00",
      "recalculated_total": "692.00",
      "stated_total_minus_recalculated_total": "0.00",
      "po_merchandise_subtotal": "600.00",
      "po_quantity_tax_at_invoice_rate": "72.00",
      "po_quantity_total_using_invoice_shipping": "692.00",
      "stated_total_minus_po_quantity_total": "0.00",
      "po_bank_account_suffix": "0412",
      "bank_suffix_matches_po": true,
      "basis": "Tax is 12% of merchandise per this invoice footer. This invoice explicitly exempts shipping from tax. PO-derived totals use invoice shipping and tax rules, not independent PO authorization of these charges."
    }
  },
  {
    "source_image": "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",
        "quantity": 3,
        "unit_price": "85.00",
        "amount": "255.00",
        "recalculated_amount": "255.00",
        "po_comparison": {
          "source": "inputs/purchase-orders.csv — PO-1043 / Microphone rental",
          "quantity": 2,
          "unit_price": "85.00",
          "quantity_difference": 1,
          "unit_price_difference": "0.00"
        }
      },
      {
        "description": "Stand rental",
        "quantity": 2,
        "unit_price": "15.00",
        "amount": "30.00",
        "recalculated_amount": "30.00",
        "po_comparison": {
          "source": "inputs/purchase-orders.csv — PO-1043 / Stand rental",
          "quantity": 2,
          "unit_price": "15.00",
          "quantity_difference": 0,
          "unit_price_difference": "0.00"
        }
      }
    ],
    "subtotal": "285.00",
    "tax": "34.20",
    "shipping": "0.00",
    "total": "329.20",
    "bank_account_suffix": "8891",
    "exceptions": [
      {
        "code": "QUANTITY_EXCEEDS_PO",
        "detail": "Microphone rental: invoiced 3 versus PO quantity 2 at matching CAD 85.00 unit price; excess merchandise CAD 85.00 and associated tax CAD 10.20. Verify receipt and approved PO amendment or obtain correction. Stand rental quantity 2 and CAD 15.00 price match.",
        "evidence": [
          "inputs/invoice-02.png — INVOICE 001083, line table",
          "inputs/purchase-orders.csv — PO-1043 / Microphone rental; PO-1043 / Stand rental"
        ]
      },
      {
        "code": "TOTAL_ARITHMETIC_MISMATCH",
        "detail": "CAD 285.00 subtotal + 34.20 tax + 0.00 shipping = 319.20, not stated 329.20; stated total is CAD 10.00 too high. PO quantities yield subtotal 200.00, tax 24.00 and total 224.00 under the invoice tax rule; stated total exceeds that conditional baseline by CAD 105.20. Require corrected invoice.",
        "evidence": [
          "inputs/invoice-02.png — INVOICE 001083, totals and footer",
          "inputs/purchase-orders.csv — PO-1043 records"
        ]
      },
      {
        "code": "BANK_DETAILS_CHANGED",
        "detail": "Invoice suffix 8891 differs from PO suffix 8821; footer says banking details updated. Hold payment pending independent verification through established trusted vendor records and authorized internal process; the invoice statement alone is insufficient.",
        "evidence": [
          "inputs/invoice-02.png — INVOICE 001083, Bank account ending and footer",
          "inputs/purchase-orders.csv — PO-1043 records"
        ]
      }
    ],
    "evidence": [
      "inputs/invoice-02.png — INVOICE 001083, header (supplier, invoice date, purchase order, currency), line table, totals, bank account ending and footer",
      "inputs/purchase-orders.csv — PO-1043 records"
    ],
    "reconciliation": {
      "recalculated_subtotal": "285.00",
      "recalculated_tax": "34.20",
      "recalculated_total": "319.20",
      "stated_total_minus_recalculated_total": "10.00",
      "po_merchandise_subtotal": "200.00",
      "po_quantity_tax_at_invoice_rate": "24.00",
      "po_quantity_total_using_invoice_shipping": "224.00",
      "stated_total_minus_po_quantity_total": "105.20",
      "po_bank_account_suffix": "8821",
      "bank_suffix_matches_po": false,
      "basis": "Tax is 12% of merchandise per this invoice footer. This invoice shows zero shipping. PO-derived totals use invoice shipping and tax rules, not independent PO authorization of these charges."
    }
  }
]
