{
  "disclosure": "架空の費用集計。献立・栄養・医療判断を含まない。",
  "month": "2026-09",
  "batch": 1,
  "summary": {
    "allocated_known": 9952,
    "unallocated_known": 1100,
    "unknown_amount_count": 2,
    "unknown_period_count": 1,
    "unknown_period_known": 400,
    "budget_known": 10500,
    "comparable_known": 9802,
    "known_difference": -698,
    "budget_missing_count": 1,
    "complete": false,
    "over_budget_buckets": 3
  },
  "buckets": [
    {
      "id": "F01-B-S",
      "facility": "F01",
      "meal": "B",
      "group": "S",
      "known_amount": 300,
      "budget": 500,
      "budget_issue": "",
      "known_difference": -200,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C02",
          "date": "2026-09-01",
          "amount": 300,
          "source_amount": 300,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F01-B-U",
      "facility": "F01",
      "meal": "B",
      "group": "U",
      "known_amount": 1200,
      "budget": 1000,
      "budget_issue": "",
      "known_difference": 200,
      "status": "既知額で超過",
      "members": [
        {
          "id": "C01",
          "date": "2026-09-01",
          "amount": 1200,
          "source_amount": 1200,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F01-D-S",
      "facility": "F01",
      "meal": "D",
      "group": "S",
      "known_amount": 150,
      "budget": null,
      "budget_issue": "予算未登録",
      "known_difference": null,
      "status": "予算未登録",
      "members": [
        {
          "id": "C07",
          "date": "2026-09-02",
          "amount": 150,
          "source_amount": 150,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F01-D-U",
      "facility": "F01",
      "meal": "D",
      "group": "U",
      "known_amount": 1734,
      "budget": 2000,
      "budget_issue": "",
      "known_difference": -266,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C04",
          "date": "2026-09-02",
          "amount": 1400,
          "source_amount": 1400,
          "share": 10000,
          "revision": 1,
          "original": null
        },
        {
          "id": "C05",
          "date": "2026-09-02",
          "amount": 334,
          "source_amount": 1001,
          "share": 3333,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F01-L-S",
      "facility": "F01",
      "meal": "L",
      "group": "S",
      "known_amount": 0,
      "budget": 0,
      "budget_issue": "",
      "known_difference": 0,
      "status": "既知額で一致",
      "members": [
        {
          "id": "C06",
          "date": "2026-09-02",
          "amount": 0,
          "source_amount": 0,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F01-L-U",
      "facility": "F01",
      "meal": "L",
      "group": "U",
      "known_amount": 2467,
      "budget": 2500,
      "budget_issue": "",
      "known_difference": -33,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C03",
          "date": "2026-09-02",
          "amount": 1800,
          "source_amount": 1800,
          "share": 10000,
          "revision": 1,
          "original": null
        },
        {
          "id": "C05",
          "date": "2026-09-02",
          "amount": 667,
          "source_amount": 1001,
          "share": 6667,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F02-B-S",
      "facility": "F02",
      "meal": "B",
      "group": "S",
      "known_amount": 500,
      "budget": 400,
      "budget_issue": "",
      "known_difference": 100,
      "status": "既知額で超過",
      "members": [
        {
          "id": "C09",
          "date": "2026-09-01",
          "amount": 500,
          "source_amount": 500,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F02-B-U",
      "facility": "F02",
      "meal": "B",
      "group": "U",
      "known_amount": 801,
      "budget": 900,
      "budget_issue": "",
      "known_difference": -99,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C08",
          "date": "2026-09-01",
          "amount": 800,
          "source_amount": 800,
          "share": 10000,
          "revision": 1,
          "original": null
        },
        {
          "id": "C15",
          "date": "2026-09-02",
          "amount": 1,
          "source_amount": 1,
          "share": 5000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F02-D-S",
      "facility": "F02",
      "meal": "D",
      "group": "S",
      "known_amount": 100,
      "budget": 0,
      "budget_issue": "",
      "known_difference": 100,
      "status": "既知額で超過",
      "members": [
        {
          "id": "C14",
          "date": "2026-09-02",
          "amount": 100,
          "source_amount": 100,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F02-D-U",
      "facility": "F02",
      "meal": "D",
      "group": "U",
      "known_amount": 1000,
      "budget": 1200,
      "budget_issue": "",
      "known_difference": -200,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C13",
          "date": "2026-09-02",
          "amount": 1000,
          "source_amount": 1000,
          "share": 10000,
          "revision": 1,
          "original": null
        }
      ]
    },
    {
      "id": "F02-L-S",
      "facility": "F02",
      "meal": "L",
      "group": "S",
      "known_amount": 400,
      "budget": 500,
      "budget_issue": "",
      "known_difference": -100,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C12",
          "date": "2026-09-02",
          "amount": 400,
          "source_amount": 400,
          "share": 10000,
          "revision": 2,
          "original": null
        }
      ]
    },
    {
      "id": "F02-L-U",
      "facility": "F02",
      "meal": "L",
      "group": "U",
      "known_amount": 1300,
      "budget": 1500,
      "budget_issue": "",
      "known_difference": -200,
      "status": "既知額で予算内",
      "members": [
        {
          "id": "C10",
          "date": "2026-09-02",
          "amount": 1400,
          "source_amount": 1400,
          "share": 10000,
          "revision": 1,
          "original": null
        },
        {
          "id": "C11",
          "date": "2026-09-03",
          "amount": -100,
          "source_amount": -100,
          "share": 10000,
          "revision": 1,
          "original": "C10"
        },
        {
          "id": "C15",
          "date": "2026-09-02",
          "amount": 0,
          "source_amount": 1,
          "share": 5000,
          "revision": 1,
          "original": null
        }
      ]
    }
  ],
  "rows": [
    {
      "id": "C01",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-01",
      "amount": 1200,
      "in_month": true,
      "source": {
        "id": "C01",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-01",
        "amount": 1200,
        "shares": {
          "F01-B-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-B-U": 1200
      }
    },
    {
      "id": "C02",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-01",
      "amount": 300,
      "in_month": true,
      "source": {
        "id": "C02",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-01",
        "amount": 300,
        "shares": {
          "F01-B-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-B-S": 300
      }
    },
    {
      "id": "C03",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 1800,
      "in_month": true,
      "source": {
        "id": "C03",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 1800,
        "shares": {
          "F01-L-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-L-U": 1800
      }
    },
    {
      "id": "C04",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 1400,
      "in_month": true,
      "source": {
        "id": "C04",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 1400,
        "shares": {
          "F01-D-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-D-U": 1400
      }
    },
    {
      "id": "C05",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 1001,
      "in_month": true,
      "source": {
        "id": "C05",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 1001,
        "shares": {
          "F01-L-U": 6667,
          "F01-D-U": 3333
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-D-U": 334,
        "F01-L-U": 667
      }
    },
    {
      "id": "C06",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 0,
      "in_month": true,
      "source": {
        "id": "C06",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 0,
        "shares": {
          "F01-L-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-L-S": 0
      }
    },
    {
      "id": "C07",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 150,
      "in_month": true,
      "source": {
        "id": "C07",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 150,
        "shares": {
          "F01-D-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F01-D-S": 150
      }
    },
    {
      "id": "C08",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-01",
      "amount": 800,
      "in_month": true,
      "source": {
        "id": "C08",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-01",
        "amount": 800,
        "shares": {
          "F02-B-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-B-U": 800
      }
    },
    {
      "id": "C09",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-01",
      "amount": 500,
      "in_month": true,
      "source": {
        "id": "C09",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-01",
        "amount": 500,
        "shares": {
          "F02-B-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-B-S": 500
      }
    },
    {
      "id": "C10",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": 1400,
      "in_month": true,
      "source": {
        "id": "C10",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": 1400,
        "shares": {
          "F02-L-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-L-U": 1400
      }
    },
    {
      "id": "C11",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-03",
      "amount": -100,
      "in_month": true,
      "source": {
        "id": "C11",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-03",
        "amount": -100,
        "shares": {
          "F02-L-U": 10000
        },
        "kind": "return",
        "original": "C10",
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-L-U": -100
      }
    },
    {
      "id": "C12",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": 400,
      "in_month": true,
      "source": {
        "id": "C12",
        "revision": 2,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": 400,
        "shares": {
          "F02-L-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-L-S": 400
      }
    },
    {
      "id": "C13",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": 1000,
      "in_month": true,
      "source": {
        "id": "C13",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": 1000,
        "shares": {
          "F02-D-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-D-U": 1000
      }
    },
    {
      "id": "C14",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": 100,
      "in_month": true,
      "source": {
        "id": "C14",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": 100,
        "shares": {
          "F02-D-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-D-S": 100
      }
    },
    {
      "id": "C15",
      "status": "allocated",
      "reason": "指定区分へ配分",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": 1,
      "in_month": true,
      "source": {
        "id": "C15",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": 1,
        "shares": {
          "F02-B-U": 5000,
          "F02-L-U": 5000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {
        "F02-B-U": 1,
        "F02-L-U": 0
      }
    },
    {
      "id": "C16",
      "status": "unallocated",
      "reason": "配分先の区分または施設が不明",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 200,
      "in_month": true,
      "source": {
        "id": "C16",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 200,
        "shares": {
          "F01-N-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {}
    },
    {
      "id": "C17",
      "status": "unallocated",
      "reason": "配分先の区分または施設が不明",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": 300,
      "in_month": true,
      "source": {
        "id": "C17",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": 300,
        "shares": {
          "F02-L-X": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {}
    },
    {
      "id": "C18",
      "status": "unallocated",
      "reason": "配分率が不正・合計は10000が必要",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 600,
      "in_month": true,
      "source": {
        "id": "C18",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 600,
        "shares": {
          "F01-B-U": 6000,
          "F01-B-S": 3000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {}
    },
    {
      "id": "C19",
      "status": "unknown_amount",
      "reason": "金額が未入力または整数円ではない",
      "facility": "F02",
      "date": "2026-09-02",
      "amount": null,
      "in_month": true,
      "source": {
        "id": "C19",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-02",
        "amount": null,
        "shares": {
          "F02-D-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {}
    },
    {
      "id": "C20",
      "status": "conflict",
      "reason": "仕入明細の同じ版が競合",
      "facility": "F01",
      "date": null,
      "amount": null,
      "in_month": true,
      "source": [
        {
          "id": "C20",
          "revision": 1,
          "facility": "F01",
          "date": "2026-09-02",
          "amount": 700,
          "shares": {
            "F01-L-U": 10000
          },
          "kind": "purchase",
          "original": null,
          "state": "active",
          "batch": 1
        },
        {
          "id": "C20",
          "revision": 1,
          "facility": "F01",
          "date": "2026-09-02",
          "amount": 800,
          "shares": {
            "F01-L-U": 10000
          },
          "kind": "purchase",
          "original": null,
          "state": "active",
          "batch": 1
        }
      ],
      "allocations": {}
    },
    {
      "id": "C21",
      "status": "excluded",
      "reason": "取消",
      "facility": "F01",
      "date": "2026-09-02",
      "amount": 99,
      "in_month": false,
      "source": {
        "id": "C21",
        "revision": 1,
        "facility": "F01",
        "date": "2026-09-02",
        "amount": 99,
        "shares": {
          "F01-L-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "cancelled",
        "batch": 1
      },
      "allocations": {}
    },
    {
      "id": "C22",
      "status": "excluded",
      "reason": "対象月外",
      "facility": "F01",
      "date": "2026-10-01",
      "amount": 250,
      "in_month": false,
      "source": {
        "id": "C22",
        "revision": 1,
        "facility": "F01",
        "date": "2026-10-01",
        "amount": 250,
        "shares": {
          "F01-L-U": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {}
    },
    {
      "id": "C23",
      "status": "unknown_period",
      "reason": "日付が不正・対象月未確定",
      "facility": "F02",
      "date": "2026-09-31",
      "amount": 400,
      "in_month": false,
      "source": {
        "id": "C23",
        "revision": 1,
        "facility": "F02",
        "date": "2026-09-31",
        "amount": 400,
        "shares": {
          "F02-D-S": 10000
        },
        "kind": "purchase",
        "original": null,
        "state": "active",
        "batch": 1
      },
      "allocations": {}
    }
  ],
  "daily": [
    {
      "date": "2026-09-01",
      "bucket": "F01-B-S",
      "amount": 300
    },
    {
      "date": "2026-09-01",
      "bucket": "F01-B-U",
      "amount": 1200
    },
    {
      "date": "2026-09-01",
      "bucket": "F02-B-S",
      "amount": 500
    },
    {
      "date": "2026-09-01",
      "bucket": "F02-B-U",
      "amount": 800
    },
    {
      "date": "2026-09-02",
      "bucket": "F01-D-S",
      "amount": 150
    },
    {
      "date": "2026-09-02",
      "bucket": "F01-D-U",
      "amount": 1734
    },
    {
      "date": "2026-09-02",
      "bucket": "F01-L-S",
      "amount": 0
    },
    {
      "date": "2026-09-02",
      "bucket": "F01-L-U",
      "amount": 2467
    },
    {
      "date": "2026-09-02",
      "bucket": "F02-B-U",
      "amount": 1
    },
    {
      "date": "2026-09-02",
      "bucket": "F02-D-S",
      "amount": 100
    },
    {
      "date": "2026-09-02",
      "bucket": "F02-D-U",
      "amount": 1000
    },
    {
      "date": "2026-09-02",
      "bucket": "F02-L-S",
      "amount": 400
    },
    {
      "date": "2026-09-02",
      "bucket": "F02-L-U",
      "amount": 1400
    },
    {
      "date": "2026-09-03",
      "bucket": "F02-L-U",
      "amount": -100
    }
  ],
  "facilities": {
    "F01": 5851,
    "F02": 4101
  },
  "categories": {
    "conflict": 1,
    "allocated": 15,
    "unallocated": 3,
    "unknown_amount": 1,
    "excluded": 2,
    "unknown_period": 1
  },
  "duplicates_removed": 1,
  "budget_duplicates_removed": 0
}
