{
  "name": "output/manager/person/employee/capacity_grid.json",
  "options": {
    "grid_option": {}
  },
  "columns": [
    {
      "field": "per_person_id",
      "width": 40,
      "name": "Henkilö"
    },
    {
      "field": "per_name",
      "width": 100,
      "name": "Nimi"
    },
    {
      "variable": "start_time",
      "width": 90,
      "name": "Alkaa",
      "enterable": 1
    },
    {
      "variable": "end_time",
      "width": 90,
      "name": "Loppuu",
      "enterable": 1
    },
    {
      "variable": "day_number",
      "width": 35,
      "name": "Päivä",
      "styleX": {"horizontal_align": "left"},
      "show_table": "rec.day_name_short"
    },
    {
      "variable": "shift_name",
      "width": 100,
      "name": "Vuoron nimi"
    },
    {
      "variable": "shift_number",
      "width": 30,
      "name": "Vuoro"
    },
    {
      "variable": "record_type",
      "width": 50,
      "name": "Tyyppi",
      "cellEditorParams": {
        "values": "popup.record_type",
        "popup_field": "value",
        "set_popup_show_fieldX": "sor_explanation"
      },
      "cellClassRules": {
        "lightgrey-bg": "!x",
        "grey": "x == 'default'",
        "black": "x == 'planned'",
        "green": "x == 'holiday'",
        "blue": "x == 'actual'",
        "brown": "x > 'checked'"
      }
    },
    {
      "variable": "resource_id",
      "width": 45,
      "name": "Solu/kry"
    },
    {
      "variable": "hours",
      "width": 35,
      "name": "Tuntia",
      "format": "%'.2f",
      "cellClassRules": {
        "": "x < 0",
        "grey": "x == 0",
        "blue": "x > 0"
      }
    },
    {
      "variable": "multiplier",
      "width": 35,
      "name": "Kerroin",
      "format": "%'.2f"
    },
    {
      "variable": "capacity",
      "width": 55,
      "name": "Kapasiteetti",
      "format": "%'.2f",
      "cellClassRules": {
        "": "x < 0",
        "grey": "x == 0",
        "blue": "x > 0"
      }
    },
    {
      "variable": "info",
      "width": 100,
      "name": "Lisätietoja",
      "enterable": 1
    }
  ]
}
