[
  {
    "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_quantity": 80,
        "po_unit_price": "7.50",
        "quantity_variance": 0,
        "unit_price_variance": "0.00",
        "po_source": "inputs/purchase-orders.csv: PO-1042 / Workshop handbooks"
      }
    ],
    "subtotal": "600.00",
    "tax": "72.00",
    "shipping": "20.00",
    "total": "692.00",
    "bank_account_suffix": "0412",
    "reconciliation": {
      "tax_rate": "0.12",
      "tax_basis": "Merchandise only; shipping exempt per invoice footer.",
      "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_bank_account_suffix": "0412",
      "bank_suffix_matches_po": true
    },
    "exceptions": [
      {
        "code": "SHIPPING_AUTHORIZATION_NOT_EVIDENCED",
        "detail": "Invoice includes CAD 20.00 shipping. The supplied PO CSV has no shipping field; verify authorization before payment. This is an evidence gap, not a demonstrated overcharge.",
        "sources": [
          "inputs/invoice-01.png: Shipping and tax footer",
          "inputs/purchase-orders.csv: PO-1042 / Workshop handbooks"
        ]
      }
    ],
    "uncertainties": [],
    "sources": [
      "inputs/invoice-01.png: INVOICE 000742, header, item table, totals, bank account and footer",
      "inputs/purchase-orders.csv: PO-1042 / Workshop handbooks"
    ]
  },
  {
    "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_quantity": 2,
        "po_unit_price": "85.00",
        "quantity_variance": 1,
        "unit_price_variance": "0.00",
        "po_source": "inputs/purchase-orders.csv: PO-1043 / Microphone rental"
      },
      {
        "description": "Stand rental",
        "quantity": 2,
        "unit_price": "15.00",
        "amount": "30.00",
        "recalculated_amount": "30.00",
        "po_quantity": 2,
        "po_unit_price": "15.00",
        "quantity_variance": 0,
        "unit_price_variance": "0.00",
        "po_source": "inputs/purchase-orders.csv: PO-1043 / Stand rental"
      }
    ],
    "subtotal": "285.00",
    "tax": "34.20",
    "shipping": "0.00",
    "total": "329.20",
    "bank_account_suffix": "8891",
    "reconciliation": {
      "tax_rate": "0.12",
      "tax_basis": "Merchandise per invoice footer.",
      "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_at_invoice_rate_and_stated_shipping": "224.00",
      "stated_total_minus_po_quantity_total": "105.20",
      "recalculated_total_minus_po_quantity_total": "95.20",
      "po_bank_account_suffix": "8821",
      "bank_suffix_matches_po": false
    },
    "exceptions": [
      {
        "code": "QUANTITY_EXCEEDS_PO",
        "detail": "Microphone rental bills 3 versus PO quantity 2 at the matching CAD 85.00 unit price: one extra unit, CAD 85.00 merchandise and CAD 10.20 tax at the invoice rate. Verify approved quantity change and receipt/service evidence; otherwise request correction. Stand rental quantity and both unit prices match.",
        "sources": [
          "inputs/invoice-02.png: item table",
          "inputs/purchase-orders.csv: PO-1043 / Microphone rental and Stand rental"
        ]
      },
      {
        "code": "TOTAL_ARITHMETIC_ERROR",
        "detail": "CAD 285.00 + 34.20 + 0.00 = 319.20, not stated total 329.20. Stated total is CAD 10.00 too high independently of the quantity discrepancy. Obtain a corrected invoice before payment.",
        "sources": [
          "inputs/invoice-02.png: totals"
        ]
      },
      {
        "code": "BANK_ACCOUNT_CHANGED",
        "detail": "Invoice suffix 8891 differs from PO suffix 8821; footer says banking details updated. Hold payment pending independent verification through a trusted pre-existing channel; the invoice statement alone does not validate the change.",
        "sources": [
          "inputs/invoice-02.png: Bank account ending and footer",
          "inputs/purchase-orders.csv: both PO-1043 records"
        ]
      }
    ],
    "uncertainties": [],
    "sources": [
      "inputs/invoice-02.png: INVOICE 001083, header, item table, totals, bank account and footer",
      "inputs/purchase-orders.csv: PO-1043 / Microphone rental and Stand rental"
    ]
  }
]
