{
  "database_not_in_use": "4d",
  "name": "wos/worpost_gig/load_with_production_lot_arr",
  "info_fi": "työpisteen kuormituksien valinnan teko valmistuserätaulukon avulla",
  "parameter": {
    "production_lot_phase_arr": [""]
  },
  "query": [
    [
      "wos_work_phase",
      ">",
      0
    ],
    "and",
    [
      "wos_production_lot__work_ph",
      "in",
      "production_lot_phase_arr"
    ],
    "and",
    "open"
  ],
  "set": {
    "open": [
      [
        "wos_work_phase_state",
        "in",
        ["EK","KU","AL"]
      ],
      "and",
      [
        "wo_state",
        "in",
        ["EK","KU","AL"]
      ]
    ]
  },
  "order": ["wos_production_lot", ">","wos_work_phase", ">"],
  "field": [
    "wos_production_lot",
    "wos_work_phase",
    "wos_production_lot__work_ph",
    "wos_work_load_group_id",
    "wos_work_phase_state",
    "wos_work_description",
    "wos_produced_amount",
    "wos_remaining_amount",
    "wos_record_id"
  ]
}
