<% /*
    $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 =
{
    "records_name": "bookingdisciplineparams",
    "record_name": "bookingdisciplineparams",
    "table": "res_disc_params",
    "primary": "res_disc_params_key",
    "fields": {
        "id": {
            "dbs": "res_disc_params_key",
            "label": L("lcl_key"),
            "typ": "key",
            "seq": "res_s_res_disc_params_key"
        },
        "bookingdiscipline": {
            "dbs": "res_ins_discipline_key",
            "label": L("res_v_res_catalogus"),
            "typ": "key",
            "hidden_fld": true
        },
        "notify": {
            "dbs": "res_disc_params_notify",
            "label": L("res_catalogus_notify"),
            "typ": "check0",
            "multiedit": true
        },
        "bonotify": {
            "dbs": "res_disc_params_bonotify",
            "label": L("res_discipline_bonotify"),
            "typ": "check0",
            "multiedit": true
        },
        "reminderdays": {
            "dbs": "res_disc_params_noti_dagen",
            "label": L("res_catalogus_noti_dagen"),
            "typ": "number",
            "multiedit": true
        },
        "preposttime": {
            "dbs": "res_disc_params_preposttime",
            "label": L("res_catalogus_preposttime"),
            "typ": "float",
            "defaultvalue": 0,
            "required": true,
            "multiedit": true
        },
        "expiredays": {
            "dbs": "res_disc_params_expire_dagen",
            "label": L("res_catalogus_expire_dagen"),
            "typ": "number",
            "defaultvalue": 1,
            "required": true,
            "multiedit": true
        },
        "expireweekday": {
            "dbs": "res_disc_params_expire_wkdag",
            "label": L("res_catalogus_expire_weekdag"),
            "typ": "number",
            "LOV": L("res_catalogus_expire_weekdagLOV"),
            "emptyoption": "",
            "multiedit": true
        },
        "expiretime": {
            "dbs": "res_disc_params_expire_tijd",
            "label": L("res_catalogus_expire_tijd"),
            "typ": "float",
            "LOV": api2.getTimetable(), // TODO timepicker?
            "emptyoption": L("res_artikel_standaard"),
            "multiedit": true
        },
        "canceldays": {
            "dbs": "res_disc_params_cancel_dagen",
            "label": L("res_catalogus_cancel_dagen"),
            "typ": "number",
            "defaultvalue": 1,
            "required": true,
            "multiedit": true
        },
/*        "futuredays": {
            "dbs": "res_disc_params_limiet",
            "label": L("res_disc_params_limiet"),
            "typ": "number",
            "multiedit": true
        },
        "futuredaysfe": {
            "dbs": "res_disc_params_limiet_fe",
            "label": L("res_disc_params_limiet_fe"),
            "typ": "number",
            "multiedit": true
        },
*/      /* voorlopig ff deprecated, komt nog wel terug */
        "maxtime": {
            "dbs": "res_disc_params_maxduur",
            "label": L("res_catalogus_maxduur"),
            "typ": "float",
            "defaultvalue": 0,
            "required": true,
            "multiedit": true
        },
        "blocktimes": {
            "dbs": "res_disc_params_intervals",
            "label": L("res_disc_params_intervals"),
            "typ": "memo",
            "translate": true,
            "multiedit": true
        },
        "mintime": {
            "dbs": "res_disc_params_min_duur",
            "label": L("res_catalogus_min_duur"),
            "typ": "float",
            "defaultvalue": 0,
            "required": true,
            "multiedit": true
        },
        "minparticipants": {
            "dbs": "res_disc_params_min_deelnmrs",
            "label": L("res_catalogus_min_participants"),
            "typ": "number",
            "defaultvalue": 0,
            "required": true,
            "multiedit": true
        },
        "company": {
            "dbs": "prs_bedrijf_key",
            "label": L("res_catalogus_bedrijf"),
            "typ": "key",
            "multiedit": true,
            "foreign": {
                "tbl": "prs_v_aanwezigbedrijf",  /* actieve relaties */
                "key": "prs_bedrijf_key",
                "desc": "prs_bedrijf_naam"
            }
        },
        "costs": {
            "dbs": "res_disc_params_kosten",
            "label": L("res_catalogus_kosten"),
            "defaultvalue": 100,
            "typ": "number",
            "multiedit": true
        },
        "threshold": {
            "dbs": "res_disc_params_threshold",
            "label": L("res_catalogus_threshold"),
            "typ": "float",
            "defaultvalue": 9999999,
            "required": true,
            "multiedit": true
        },
        "editoption": {
            "dbs": "res_disc_params_edit_option",
            "label": L("lcl_res_edit_option_only"),
            "typ": "check0"
        }
    },

    "autfunction": "WEB_PRSSYS"
}

api2.generic_REST(model_res_disc_params);

%>