{
  "name": "kinkozi-dataflow-kintone-plugin",
  "version": "1",
  "key": "{\"jobs\":[{\"id\":\"539fdvf5uwcjhg04\",\"name\":\"半期ごとの売上実績を集計する\",\"description\":\"\",\"triggers\":[\"listButton\"],\"triggerProcessActions\":[],\"listButtonLabel\":\"半期ごとの売上実績を集計する\",\"detailButtonLabel\":\"\",\"enabled\":true,\"logAppId\":\"497\",\"showDisabledButton\":false,\"acl\":[{\"type\":\"everyone\",\"code\":\"\",\"apply\":true}],\"flows\":[{\"id\":\"s5x75mlgtonutsq4\",\"name\":\"半期ごとの売上実績を集計する_フロー\",\"nodes\":[{\"id\":\"6cpr7yldoz85xx9g\",\"position\":{\"x\":464,\"y\":192},\"type\":\"AppInput\",\"setting\":{\"title\":\"店舗日報\",\"description\":\"アプリのレコードから入力データを抽出します。\",\"appId\":\"530\",\"listFilter\":{\"filterType\":\"custom\",\"customFilter\":{\"conditions\":[],\"logic\":\"and\",\"orderBy\":[{\"code\":\"レコード番号\",\"order\":\"desc\"}]}},\"eventFilter\":{\"filterType\":\"custom\"},\"fields\":[{\"code\":\"日付\",\"newCode\":\"\"},{\"code\":\"予算\",\"newCode\":\"\"},{\"code\":\"売上\",\"newCode\":\"\"},{\"code\":\"お客様数\",\"newCode\":\"\"}]},\"zIndex\":1000},{\"id\":\"pb1iwc7ej9621l0c\",\"position\":{\"x\":640,\"y\":192},\"type\":\"DataTransform\",\"setting\":{\"title\":\"年月算出\",\"description\":\"固定値や空白の設定、数式による加工、または他フィールドからのコピーを行い、既存のフィールドまたは新規フィールドに保存します。\",\"editMethod\":\"formula\",\"outputDestination\":\"new\",\"searchMode\":\"all\",\"delimiter\":\"\",\"newField\":{\"label\":\"年月\",\"newCode\":\"年月\"},\"formulaSetting\":\"CONCAT(YEAR(日付), \\\"年\\\", TEXT(MONTH(日付), \\\"00\\\"), \\\"月\\\")\"},\"zIndex\":1000},{\"id\":\"lvdqovc3koflvmij\",\"position\":{\"x\":816,\"y\":192},\"type\":\"AggregateRecords\",\"setting\":{\"title\":\"月次合計算出\",\"description\":\"選択したフィールドのレコードをグループごとに集計します。\",\"fields\":[{\"code\":\"年月\"}],\"aggregations\":[{\"code\":\"予算\",\"newLabel\":\"月次予算\",\"newCode\":\"月次予算\",\"type\":\"SUM\"},{\"code\":\"売上\",\"newLabel\":\"月次売上\",\"newCode\":\"月次売上\",\"type\":\"SUM\"},{\"code\":\"お客様数\",\"newLabel\":\"月次お客様数\",\"newCode\":\"月次お客様数\",\"type\":\"SUM\"}]},\"zIndex\":1000},{\"id\":\"xrankhwtvdtb282k\",\"position\":{\"x\":992,\"y\":192},\"type\":\"DataTransform\",\"setting\":{\"title\":\"会計年度算出\",\"description\":\"固定値や空白の設定、数式による加工、または他フィールドからのコピーを行い、既存のフィールドまたは新規フィールドに保存します。\",\"editMethod\":\"formula\",\"outputDestination\":\"new\",\"searchMode\":\"all\",\"delimiter\":\"\",\"newField\":{\"label\":\"会計年度\",\"newCode\":\"会計年度\"},\"formulaSetting\":\"CONCAT(IF(VALUE(MID(年月, 6, 2)) >= 4, LEFT(年月, 4), VALUE(LEFT(年月, 4)) - 1), \\\"年\\\")\"},\"zIndex\":1000},{\"id\":\"mm3bfwhj8s6cg10o\",\"position\":{\"x\":1168,\"y\":192},\"type\":\"DataTransform\",\"setting\":{\"title\":\"半期算出\",\"description\":\"固定値や空白の設定、数式による加工、または他フィールドからのコピーを行い、既存のフィールドまたは新規フィールドに保存します。\",\"editMethod\":\"formula\",\"outputDestination\":\"new\",\"searchMode\":\"all\",\"delimiter\":\"\",\"newField\":{\"label\":\"半期\",\"newCode\":\"半期\"},\"formulaSetting\":\"IF(AND(VALUE(MID(年月, 6, 2)) >= 4, VALUE(MID(年月, 6, 2)) <= 9), \\\"上期\\\", \\\"下期\\\")\"},\"zIndex\":1000},{\"id\":\"azx9vi3f5vd8mtm7\",\"position\":{\"x\":1344,\"y\":192},\"type\":\"AggregateRecords\",\"setting\":{\"title\":\"半期サマリー算出\",\"description\":\"選択したフィールドのレコードをグループごとに集計します。\",\"fields\":[{\"code\":\"会計年度\"},{\"code\":\"半期\"}],\"aggregations\":[{\"code\":\"月次売上\",\"newLabel\":\"売上中央値\",\"newCode\":\"売上中央値\",\"type\":\"MEDIAN\"},{\"code\":\"月次売上\",\"newLabel\":\"売上平均\",\"newCode\":\"売上平均\",\"type\":\"AVERAGE\"},{\"code\":\"月次売上\",\"newLabel\":\"売上合計\",\"newCode\":\"売上合計\",\"type\":\"SUM\"},{\"code\":\"月次お客様数\",\"newLabel\":\"お客様数合計\",\"newCode\":\"お客様数合計\",\"type\":\"SUM\"},{\"code\":\"月次予算\",\"newLabel\":\"予算合計\",\"newCode\":\"予算合計\",\"type\":\"SUM\"}]},\"zIndex\":1000},{\"id\":\"z9hjdba3rd2znwcm\",\"position\":{\"x\":1520,\"y\":192},\"type\":\"DataTransform\",\"setting\":{\"title\":\"達成率算出\",\"description\":\"固定値や空白の設定、数式による加工、または他フィールドからのコピーを行い、既存のフィールドまたは新規フィールドに保存します。\",\"editMethod\":\"formula\",\"outputDestination\":\"new\",\"searchMode\":\"all\",\"delimiter\":\"\",\"newField\":{\"label\":\"達成率\",\"newCode\":\"達成率\"},\"formulaSetting\":\"ROUND((売上合計 / 予算合計) * 100, 2)\"},\"zIndex\":1000},{\"id\":\"uod012byr9azszmb\",\"position\":{\"x\":1696,\"y\":192},\"type\":\"AppOutput\",\"setting\":{\"title\":\"半期別売上集計\",\"description\":\"データフローの結果データをアプリに出力します。\",\"appMode\":\"select\",\"appId\":\"532\",\"method\":\"upsert\",\"fields\":[{\"appCode\":\"文字列__1行_\",\"dataCode\":\"会計年度\",\"updateKey\":true},{\"appCode\":\"文字列__1行__0\",\"dataCode\":\"半期\",\"updateKey\":true},{\"appCode\":\"数値\",\"dataCode\":\"予算合計\"},{\"appCode\":\"数値_0\",\"dataCode\":\"売上合計\"},{\"appCode\":\"数値_2\",\"dataCode\":\"達成率\"},{\"appCode\":\"数値_3\",\"dataCode\":\"売上中央値\"},{\"appCode\":\"数値_4\",\"dataCode\":\"売上平均\"},{\"appCode\":\"数値_1\",\"dataCode\":\"お客様数合計\"}],\"options\":{\"updateLookup\":true},\"orderBy\":[]},\"zIndex\":1000}],\"edges\":[{\"id\":\"xrxebkvi7wu8a3ou\",\"source\":\"6cpr7yldoz85xx9g\",\"target\":\"pb1iwc7ej9621l0c\"},{\"id\":\"a91hblgbpwg4ypap\",\"source\":\"pb1iwc7ej9621l0c\",\"target\":\"lvdqovc3koflvmij\"},{\"id\":\"mau9r5c7m7hlv7ke\",\"source\":\"lvdqovc3koflvmij\",\"target\":\"xrankhwtvdtb282k\"},{\"id\":\"5xzs561bdv9ex53q\",\"source\":\"xrankhwtvdtb282k\",\"target\":\"mm3bfwhj8s6cg10o\"},{\"id\":\"r8ekyvvobywsyrau\",\"source\":\"mm3bfwhj8s6cg10o\",\"target\":\"azx9vi3f5vd8mtm7\"},{\"id\":\"cm0w2wacfkj6kamj\",\"source\":\"azx9vi3f5vd8mtm7\",\"target\":\"z9hjdba3rd2znwcm\"},{\"id\":\"xr5ea68l4vha76rp\",\"source\":\"z9hjdba3rd2znwcm\",\"target\":\"uod012byr9azszmb\"}],\"enabled\":true,\"viewport\":{\"x\":-194,\"y\":-55.5,\"zoom\":1},\"validationResult\":{\"isValid\":true,\"nodeErrors\":[],\"flowErrors\":[]}}]}]}"
}