<% /*
    $Revision$
    $Id$

    File:           model_res_disc_params.inc

    Description:    Vanuit CodeCharge gegenereerd model voor res_catalogus

    Context:

    Notes:          *uitsluitend* gebruikt als include van model_res_discipline
*/
%>
<%
model_res_disc_params =
{
  "table": "res_disc_params",
  "primary": "res_disc_params_key",
  "records_name": "res_disc_params",
  "record_name": "res_disc_params",
  "fields": {
    "id": {
      "dbs": "res_disc_params_key",
      "label": "Key",
      "typ": "key",
      "seq": "res_s_res_disc_params_key"
    },
    "res_ins_discipline_key": {
      "dbs": "res_ins_discipline_key",
      "label": "Foreign key",
      "typ": "key",
      "hidden_fld": true
    },
    "res_disc_params_preposttime": {
      "dbs": "res_disc_params_preposttime",
      "label": L("res_catalogus_preposttime"),
      "typ": "float",
      "defaultvalue": 0,
      required: true
    },
    "res_disc_params_notify": {
      "dbs": "res_disc_params_notify",
      "label": L("res_catalogus_notify"),
      "typ": "check0"
    },
    "res_disc_params_kosten": {
      "dbs": "res_disc_params_kosten",
      "label": L("res_catalogus_kosten"),
      "defaultvalue": 100,
      "typ": "number"
    },
    "res_disc_params_noti_dagen": {
      "dbs": "res_disc_params_noti_dagen",
      "label": L("res_catalogus_noti_dagen"),
      "typ": "number"
    },
    "res_disc_params_expire_dagen": {
      "dbs": "res_disc_params_expire_dagen",
      "label": L("res_catalogus_expire_dagen"),
      "typ": "number",
      "defaultvalue": 1,
      "required": true
    },
    "res_disc_params_expire_tijd": {
      "dbs": "res_disc_params_expire_tijd",
      "label": L("res_catalogus_expire_tijd"),
      "typ": "float",
      "LOV": api2.getTimetable(), // TODO timepicker?
      "emptyoption": L("res_artikel_standaard")
    },
    "res_disc_params_cancel_dagen": {
      "dbs": "res_disc_params_cancel_dagen",
      "label": L("res_catalogus_cancel_dagen"),
      "typ": "number"
    },
    "res_disc_params_remoteurl": {
      "dbs": "res_disc_params_remoteurl",
      "label": L("res_catalogus_remoteurl"),
      "typ": "varchar"
    },
    "res_disc_params_maxduur": {
      "dbs": "res_disc_params_maxduur",
      "label": L("res_catalogus_maxduur"),
      "typ": "float",
      "defaultvalue": 0,
      "required": true
    }
  },

  "autfunction": "WEB_PRSSYS"
}

api2.generic_REST(model_res_disc_params);

%>