[
  {
    "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",
        "source": "inputs/invoice-01.png — invoice 000742, Workshop handbooks",
        "recalculated_amount": "600.00",
        "amount_matches_calculation": true,
        "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": "Invoice charges CAD 20.00 shipping; the PO CSV has no shipping field. Verify authorization before payment; this is not proof the charge is unauthorized.",
        "sources": [
          "inputs/invoice-01.png — invoice 000742, Shipping",
          "inputs/purchase-orders.csv — PO-1042 / Workshop handbooks"
        ]
      }
    ],
    "reconciliation": {
      "sources": [
        "inputs/invoice-01.png — invoice 000742, header (supplier, invoice number/date, purchase order, currency), line table, totals, bank ending and tax note",
        "inputs/purchase-orders.csv — PO-1042"
      ],
      "recalculated_subtotal": "600.00",
      "recalculated_tax": "72.00",
      "recalculated_total": "692.00",
      "printed_subtotal_matches": true,
      "printed_tax_matches": true,
      "printed_total_minus_recalculated": "0.00",
      "po_merchandise_subtotal": "600.00",
      "po_basis_tax": "72.00",
      "po_basis_total_with_invoice_shipping": "692.00",
      "printed_total_minus_po_basis_total": "0.00",
      "po_bank_account_suffix": "0412",
      "bank_suffix_matches": true,
      "assumptions": "PO-basis figures apply the invoice-stated 12% merchandise tax and retain printed shipping; they are comparisons, not approved payment amounts. Shipping authorization and tax terms are not provided in the PO CSV.",
      "readability": "All required characters are legible in the supplied image; no uncertain transcription identified.",
      "bank_verification_limitation": "Only four-digit suffixes were compared. A suffix match does not establish a full account match or independent bank verification; no full account details or independent verification evidence were supplied."
    }
  },
  {
    "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",
        "source": "inputs/invoice-02.png — invoice 001083, Microphone rental",
        "recalculated_amount": "255.00",
        "amount_matches_calculation": true,
        "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",
        "source": "inputs/invoice-02.png — invoice 001083, Stand rental",
        "recalculated_amount": "30.00",
        "amount_matches_calculation": true,
        "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 2 at CAD 85.00 each. Excess merchandise CAD 85.00; related tax CAD 10.20 under the invoice rule. Verify an approved PO change and receipt/service evidence or obtain correction.",
        "sources": [
          "inputs/invoice-02.png — invoice 001083, Microphone rental and tax note",
          "inputs/purchase-orders.csv — PO-1043 / Microphone rental"
        ]
      },
      {
        "code": "TOTAL_ARITHMETIC_MISMATCH",
        "detail": "Printed components sum to CAD 319.20 (285.00 + 34.20 + 0.00), not printed total CAD 329.20; unexplained excess CAD 10.00. Obtain a corrected invoice or documented resolution.",
        "sources": [
          "inputs/invoice-02.png — invoice 001083, Subtotal / Tax / Shipping / Total due"
        ]
      },
      {
        "code": "BANK_ACCOUNT_CHANGED",
        "detail": "Invoice suffix 8891 differs from PO suffix 8821; invoice explicitly says banking details updated. Hold payment pending independent verification through established trusted records/channel, not the changed invoice details. No verification or supplier contact was performed.",
        "sources": [
          "inputs/invoice-02.png — invoice 001083, Bank account ending and banking update note",
          "inputs/purchase-orders.csv — PO-1043 / Microphone rental and Stand rental"
        ]
      }
    ],
    "reconciliation": {
      "sources": [
        "inputs/invoice-02.png — invoice 001083, header (supplier, invoice number/date, purchase order, currency), line table, totals, bank ending and tax note",
        "inputs/purchase-orders.csv — PO-1043"
      ],
      "recalculated_subtotal": "285.00",
      "recalculated_tax": "34.20",
      "recalculated_total": "319.20",
      "printed_subtotal_matches": true,
      "printed_tax_matches": true,
      "printed_total_minus_recalculated": "10.00",
      "po_merchandise_subtotal": "200.00",
      "po_basis_tax": "24.00",
      "po_basis_total_with_invoice_shipping": "224.00",
      "printed_total_minus_po_basis_total": "105.20",
      "po_bank_account_suffix": "8821",
      "bank_suffix_matches": false,
      "assumptions": "PO-basis figures apply the invoice-stated 12% merchandise tax and retain printed shipping; they are comparisons, not approved payment amounts. Shipping authorization and tax terms are not provided in the PO CSV.",
      "readability": "All required characters are legible in the supplied image; no uncertain transcription identified.",
      "bank_verification_limitation": "Only four-digit suffixes were compared. A suffix match does not establish a full account match or independent bank verification; no full account details or independent verification evidence were supplied."
    }
  }
]
