[
  {
    "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",
    "exceptions": [
      {
        "code": "SHIPPING_AUTHORIZATION_NOT_EVIDENCED",
        "detail": "Invoice charges CAD 20.00 shipping; the supplied PO CSV has no shipping field. Verify authorization before payment; this is not a proven overcharge.",
        "sources": [
          "inputs/invoice-01.png: Shipping",
          "inputs/purchase-orders.csv: PO-1042 / Workshop handbooks"
        ]
      }
    ],
    "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",
      "printed_total_minus_recalculated_total": "0.00",
      "po_bank_account_suffix": "0412",
      "bank_suffix_matches_po": true,
      "sources": [
        "inputs/invoice-01.png: line-item table, totals, bank account ending and tax footer",
        "inputs/purchase-orders.csv: PO-1042 / Workshop handbooks"
      ]
    },
    "uncertain_fields": []
  },
  {
    "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",
    "exceptions": [
      {
        "code": "QUANTITY_EXCEEDS_PO",
        "detail": "Three microphones invoiced versus two ordered: one extra at CAD 85.00, plus CAD 10.20 tax at the invoice's 12% rate (CAD 95.20 total). Verify authorization and receipt or obtain a corrected invoice.",
        "sources": [
          "inputs/invoice-02.png: Microphone rental",
          "inputs/purchase-orders.csv: PO-1043 / Microphone rental"
        ]
      },
      {
        "code": "TOTAL_ARITHMETIC_ERROR",
        "detail": "Printed total CAD 329.20 exceeds CAD 285.00 + CAD 34.20 + CAD 0.00 = CAD 319.20 by CAD 10.00. Verify and obtain correction before payment.",
        "sources": [
          "inputs/invoice-02.png: totals block"
        ]
      },
      {
        "code": "BANK_ACCOUNT_SUFFIX_CHANGED",
        "detail": "Invoice suffix 8891 differs from PO suffix 8821. The invoice states banking details were updated; that statement does not independently authenticate the change. Hold payment pending independent verification using a previously established trusted channel, not new invoice contact details.",
        "sources": [
          "inputs/invoice-02.png: Bank account ending and banking-update footer",
          "inputs/purchase-orders.csv: PO-1043 / both items"
        ]
      }
    ],
    "reconciliation": {
      "tax_rate": "0.12",
      "tax_basis": "Merchandise per invoice footer.",
      "recalculated_subtotal": "285.00",
      "recalculated_tax": "34.20",
      "recalculated_total": "319.20",
      "printed_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_invoiced_zero_shipping": "224.00",
      "printed_total_minus_po_quantity_total": "105.20",
      "po_bank_account_suffix": "8821",
      "bank_suffix_matches_po": false,
      "sources": [
        "inputs/invoice-02.png: line-item table, totals, bank account ending and footer",
        "inputs/purchase-orders.csv: PO-1043 / Microphone rental and Stand rental"
      ]
    },
    "uncertain_fields": []
  }
]
