{
  "month": "2026-10",
  "source_invoice_rows": 18,
  "source_receipt_rows": 16,
  "groups": 16,
  "rows": [
    {
      "key": "S01/D001/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D001",
        "line_id": "1",
        "invoice_id": "I001",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 1,
        "unit_yen": 1000,
        "amount_yen": 1000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 1
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D001",
          "line_id": "1",
          "receipt_id": "R001",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 1,
          "unit_yen": 1000,
          "amount_yen": 1000,
          "cancelled": false,
          "source_row": 1
        }
      ],
      "invoice_source_rows": [
        1
      ],
      "receipt_source_rows": [
        1
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "matched",
      "all_receipts_quantity": 1,
      "all_receipts_yen": 1000,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D002/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D002",
        "line_id": "1",
        "invoice_id": "I002",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-30",
        "quantity": 2,
        "unit_yen": 1000,
        "amount_yen": 2000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 2
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D002",
          "line_id": "1",
          "receipt_id": "R002",
          "revision": 1,
          "received_on": "2026-10-01",
          "quantity": 2,
          "unit_yen": 1000,
          "amount_yen": 2000,
          "cancelled": false,
          "source_row": 2
        }
      ],
      "invoice_source_rows": [
        2
      ],
      "receipt_source_rows": [
        2
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 2000,
      "delta_yen": -2000,
      "status": "period_difference",
      "all_receipts_quantity": 2,
      "all_receipts_yen": 2000,
      "receipt_months": [
        "2026-10"
      ]
    },
    {
      "key": "S01/D003/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D003",
        "line_id": "1",
        "invoice_id": "I003",
        "revision": 1,
        "billing_month": "2026-08",
        "shipped_on": "2026-08-31",
        "quantity": 3,
        "unit_yen": 1000,
        "amount_yen": 3000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 3
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D003",
          "line_id": "1",
          "receipt_id": "R003",
          "revision": 1,
          "received_on": "2026-09-01",
          "quantity": 3,
          "unit_yen": 1000,
          "amount_yen": 3000,
          "cancelled": false,
          "source_row": 3
        }
      ],
      "invoice_source_rows": [
        3
      ],
      "receipt_source_rows": [
        3
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "matched",
      "all_receipts_quantity": 3,
      "all_receipts_yen": 3000,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D004/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D004",
        "line_id": "1",
        "invoice_id": "I004",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-29",
        "quantity": 10,
        "unit_yen": 400,
        "amount_yen": 4000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 4
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D004",
          "line_id": "1",
          "receipt_id": "R004a",
          "revision": 1,
          "received_on": "2026-09-30",
          "quantity": 6,
          "unit_yen": 400,
          "amount_yen": 2400,
          "cancelled": false,
          "source_row": 4
        },
        {
          "supplier_id": "S01",
          "delivery_id": "D004",
          "line_id": "1",
          "receipt_id": "R004b",
          "revision": 1,
          "received_on": "2026-10-02",
          "quantity": 4,
          "unit_yen": 400,
          "amount_yen": 1600,
          "cancelled": false,
          "source_row": 5
        }
      ],
      "invoice_source_rows": [
        4
      ],
      "receipt_source_rows": [
        4,
        5
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 1600,
      "delta_yen": -1600,
      "status": "period_difference",
      "all_receipts_quantity": 10,
      "all_receipts_yen": 4000,
      "receipt_months": [
        "2026-09",
        "2026-10"
      ]
    },
    {
      "key": "S01/D005/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D005",
        "line_id": "1",
        "invoice_id": "I005",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 10,
        "unit_yen": 500,
        "amount_yen": 5000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 5
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D005",
          "line_id": "1",
          "receipt_id": "R005",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 9,
          "unit_yen": 500,
          "amount_yen": 4500,
          "cancelled": false,
          "source_row": 6
        }
      ],
      "invoice_source_rows": [
        5
      ],
      "receipt_source_rows": [
        6
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "quantity_difference",
      "all_receipts_quantity": 9,
      "all_receipts_yen": 4500,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D006/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D006",
        "line_id": "1",
        "invoice_id": "I006",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 10,
        "unit_yen": 600,
        "amount_yen": 6000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 6
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D006",
          "line_id": "1",
          "receipt_id": "R006",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 10,
          "unit_yen": 650,
          "amount_yen": 6500,
          "cancelled": false,
          "source_row": 7
        }
      ],
      "invoice_source_rows": [
        6
      ],
      "receipt_source_rows": [
        7
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "price_difference",
      "all_receipts_quantity": 10,
      "all_receipts_yen": 6500,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D007/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D007",
        "line_id": "1",
        "invoice_id": "I007",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 1,
        "unit_yen": 1000,
        "amount_yen": 1000,
        "kind": "freight",
        "cancelled": false,
        "source_row": 7
      },
      "receipts": [],
      "invoice_source_rows": [
        7
      ],
      "receipt_source_rows": [],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "freight_unverified",
      "all_receipts_quantity": 0,
      "all_receipts_yen": 0,
      "receipt_months": []
    },
    {
      "key": "S01/D008/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D008",
        "line_id": "1",
        "invoice_id": "I008",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 7,
        "unit_yen": 1000,
        "amount_yen": 7000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 8
      },
      "receipts": [],
      "invoice_source_rows": [
        8
      ],
      "receipt_source_rows": [],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "receipt_missing",
      "all_receipts_quantity": 0,
      "all_receipts_yen": 0,
      "receipt_months": []
    },
    {
      "key": "S01/D009/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D009",
        "line_id": "1",
        "invoice_id": "I009",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 8,
        "unit_yen": 1000,
        "amount_yen": 8000,
        "kind": "goods",
        "cancelled": true,
        "source_row": 9
      },
      "receipts": [],
      "invoice_source_rows": [
        9
      ],
      "receipt_source_rows": [],
      "approved": false,
      "status": "cancelled",
      "in_scope": false,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0
    },
    {
      "key": "S01/D010/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D010",
        "line_id": "1",
        "invoice_id": "I010",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 9,
        "unit_yen": 1000,
        "amount_yen": 9000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 10
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D010",
          "line_id": "1",
          "receipt_id": "R010",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 9,
          "unit_yen": 1000,
          "amount_yen": 9000,
          "cancelled": false,
          "source_row": 8
        }
      ],
      "invoice_source_rows": [
        10,
        16
      ],
      "receipt_source_rows": [
        8,
        15
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "matched",
      "all_receipts_quantity": 9,
      "all_receipts_yen": 9000,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D012/1",
      "invoice": null,
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D012",
          "line_id": "1",
          "receipt_id": "R012",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 12,
          "unit_yen": 1000,
          "amount_yen": 12000,
          "cancelled": false,
          "source_row": 10
        }
      ],
      "invoice_source_rows": [],
      "receipt_source_rows": [
        10
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "invoice_missing",
      "all_receipts_quantity": 12,
      "all_receipts_yen": 12000,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D013/1",
      "invoice": null,
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D013",
          "line_id": "1",
          "receipt_id": "R013",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 1,
          "unit_yen": 13000,
          "amount_yen": 13000,
          "cancelled": false,
          "source_row": 11
        }
      ],
      "invoice_source_rows": [
        12,
        17
      ],
      "receipt_source_rows": [
        11
      ],
      "approved": false,
      "status": "invoice_conflict",
      "in_scope": false,
      "invoice_yen": null,
      "receipt_yen": null,
      "delta_yen": null
    },
    {
      "key": "S01/D014/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D014",
        "line_id": "1",
        "invoice_id": "I014",
        "revision": 2,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 2,
        "unit_yen": 7500,
        "amount_yen": 15000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 18
      },
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D014",
          "line_id": "1",
          "receipt_id": "R014",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 2,
          "unit_yen": 7500,
          "amount_yen": 15000,
          "cancelled": false,
          "source_row": 12
        }
      ],
      "invoice_source_rows": [
        13,
        18
      ],
      "receipt_source_rows": [
        12
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "matched",
      "all_receipts_quantity": 2,
      "all_receipts_yen": 15000,
      "receipt_months": [
        "2026-09"
      ]
    },
    {
      "key": "S01/D015/1",
      "invoice": null,
      "receipts": [
        {
          "supplier_id": "S01",
          "delivery_id": "D015",
          "line_id": "1",
          "receipt_id": "R015",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 1,
          "unit_yen": 16000,
          "amount_yen": 16000,
          "cancelled": false,
          "source_row": 13
        }
      ],
      "invoice_source_rows": [
        14
      ],
      "receipt_source_rows": [
        13
      ],
      "approved": false,
      "status": "invalid_invoice",
      "in_scope": false,
      "invoice_yen": null,
      "receipt_yen": null,
      "delta_yen": null
    },
    {
      "key": "S01/D016/1",
      "invoice": {
        "supplier_id": "S01",
        "delivery_id": "D016",
        "line_id": "1",
        "invoice_id": "I016",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 4,
        "unit_yen": 4250,
        "amount_yen": 17000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 15
      },
      "receipts": [],
      "invoice_source_rows": [
        15
      ],
      "receipt_source_rows": [
        14,
        16
      ],
      "approved": false,
      "status": "receipt_conflict",
      "in_scope": false,
      "invoice_yen": null,
      "receipt_yen": null,
      "delta_yen": null
    },
    {
      "key": "S02/D001/1",
      "invoice": {
        "supplier_id": "S02",
        "delivery_id": "D001",
        "line_id": "1",
        "invoice_id": "I011",
        "revision": 1,
        "billing_month": "2026-09",
        "shipped_on": "2026-09-20",
        "quantity": 10,
        "unit_yen": 1000,
        "amount_yen": 10000,
        "kind": "goods",
        "cancelled": false,
        "source_row": 11
      },
      "receipts": [
        {
          "supplier_id": "S02",
          "delivery_id": "D001",
          "line_id": "1",
          "receipt_id": "R011",
          "revision": 1,
          "received_on": "2026-09-21",
          "quantity": 10,
          "unit_yen": 1000,
          "amount_yen": 10000,
          "cancelled": false,
          "source_row": 9
        }
      ],
      "invoice_source_rows": [
        11
      ],
      "receipt_source_rows": [
        9
      ],
      "approved": false,
      "in_scope": true,
      "invoice_yen": 0,
      "receipt_yen": 0,
      "delta_yen": 0,
      "status": "matched",
      "all_receipts_quantity": 10,
      "all_receipts_yen": 10000,
      "receipt_months": [
        "2026-09"
      ]
    }
  ],
  "totals": {
    "invoice_yen": 0,
    "receipt_yen": 3600,
    "delta_yen": -3600,
    "period_delta_yen": -3600,
    "other_delta_yen": 0
  },
  "counts": {
    "matched": 5,
    "period_difference": 2,
    "quantity_difference": 1,
    "price_difference": 1,
    "freight_unverified": 1,
    "receipt_missing": 1,
    "cancelled": 1,
    "invoice_missing": 1,
    "invoice_conflict": 1,
    "invalid_invoice": 1,
    "receipt_conflict": 1
  },
  "audit": [
    {
      "type": "exact_duplicate",
      "kind": "invoice",
      "group": "S01/D010/1",
      "excluded_rows": [
        16
      ]
    },
    {
      "type": "invoice_conflict",
      "group": "S01/D013/1",
      "source_rows": [
        12,
        17
      ]
    },
    {
      "type": "superseded_revision",
      "kind": "invoice",
      "group": "S01/D014/1",
      "excluded_rows": [
        13
      ],
      "used_revision": 2
    },
    {
      "type": "invalid_invoice",
      "group": "S01/D015/1",
      "source_rows": [
        14
      ],
      "details": [
        "day is out of range for month"
      ]
    },
    {
      "type": "exact_duplicate",
      "kind": "receipt",
      "group": "S01/R010",
      "excluded_rows": [
        15
      ]
    },
    {
      "type": "receipt_conflict",
      "group": "S01/R016",
      "source_rows": [
        14,
        16
      ]
    }
  ],
  "approved": false,
  "accounting_posted": false,
  "payments_sent": false,
  "aggregation_scope": "有効な請求・受入データで金額を確定できた明細のみ。競合・不正データは対応明細全体を集計から分け、取消のみの明細は対象外。"
}
