<% /*
    $Revision$
    $Id$

    File:           model_mld_disc_params.inc

    Description:

    Context:

    Notes:          *uitsluitend* gebruikt als include van model_mld_discipline
*/
%>
<%
model_mld_disc_params =
{
    "records_name": "issuedisciplineparams",
    "record_name": "issuedisciplineparam",
    "table": "mld_disc_params",
    "primary": "mld_disc_params_key",
    "autfunction": "WEB_PRSSYS",


    "fields": {
        "id": {
            "dbs": "mld_disc_params_key",
            "label": L("lcl_key"),
            "typ": "key",
            "seq": "res_s_mld_disc_params_key"
        },
        "issuediscipline": {
            "dbs": "mld_ins_discipline_key",
            "label": "Foreign key",
            "typ": "key",
            "hidden_fld": true
        },
        "backofficegroup": {
            "dbs": "mld_behandelgroep_key",
            "label": L("mld_behandelgroep"),
            "typ": "key",
            "foreign": {
              "tbl": "mld_behandelgroep",
              "key": "mld_behandelgroep_key",
              "desc": "mld_behandelgroep_naam"
            },
            "multiedit": true
        },
        // Instelling: Soort vakgroep.
        // Bitwise instelling: bit 0: 1 = Primaire vakgroep.
        //                     bit 1: 2 = Behandelteam.
        //                     bit 2: 4 = met (behandel)team (in combinatie met 1).
        // De volgende waarden komen dan voor:
        // 1 = Primaire vakgroep zonder behandelteams.
        // 5 = Primaire vakgroep met behandelteams.
        // 2 = Behandelteam.
        // 3 = Zowel a) primaire vakgroep zonder teams als b) behandelteam.
        // 7 = Zowel a) primaire vakgroep met teams als b) behandelteam.
        "srtgroep": {
            "dbs": "mld_disc_params_srtgroep",
            "label": L("mld_discipline_srtgroep"),
            "typ": "key",
            "LOV": L("mld_discipline_srtgroepLOV"),
            "defaultvalue": "1",
            "emptyoption": null,
            "multiedit": true
        },
        "backofficeprimary": {
            "dbs": "mld_disc_params_primairbeh",
            "label": L("lcl_mld_primairbehandelaar"),
            "typ": "key",
            "LOV": L("mld_discipline_primairbehLOV"),
            "defaultvalue": "1",
            "emptyoption": null
        },
        "orderlimit1": {
            "dbs": "mld_disc_params_bestellimiet",
            "label": L("mld_discipline_bestellimiet1"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "orderlimit2": {
            "dbs": "mld_disc_params_bestellimiet2",
            "label": L("mld_discipline_bestellimiet2"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "orderlimit3": {
            "dbs": "mld_disc_params_bestellimiet3",
            "label": L("mld_discipline_bestellimiet3"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "orderlimit4": {
            "dbs": "mld_disc_params_bestellimiet4",
            "label": L("mld_discipline_bestellimiet4"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "orderlimit5": {
            "dbs": "mld_disc_params_bestellimiet5",
            "label": L("mld_discipline_bestellimiet5"),
            "iscurrency": true,
            "typ": "float",
            "multiedit": true
        },
        "chargebudget": {
            "dbs": "mld_disc_params_pgb",
            "label": L("mld_discipline_pgb"),
            "typ": "number",
            "LOV": L("mld_discipline_pgbLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "adjuststartdate": {
            "dbs": "mld_disc_params_startdatum",
            "label": L("mld_discipline_startdatum"),
            "typ": "check0"
        },
        "foprocess": {
            "dbs": "mld_disc_params_directklaar",
            "label": L("mld_discipline_fo_process"),
            "typ": "number",
            "LOV": L("mld_discipline_fo_processLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "forward": {
            "dbs": "mld_disc_params_keten",
            "label": L("mld_discipline_forward"),
            "typ": "check0",
            "multiedit": true
        },
        "frontendpriority": {
            "dbs": "mld_disc_params_frontendprio",
            "label": L("mld_discipline_setprio"),
            "typ": "check0"
        },
        "canbepublished": {
            "dbs": "mld_disc_params_kanpubliek",
            "label": L("mld_discipline_canbepublished"),
            "typ": "check0"
        },
        "owncost": {
            "dbs": "mld_disc_params_eigen_kp",
            "label": L("mld_discipline_eigenkp"),
            "typ": "check0",
            "multiedit": true
        },
        "invoicemarginpct": {
            "dbs": "mld_disc_params_factuurpct",
            "label": L("mld_discipline_marginpct"),
            "typ": "number",
            "defaultvalue": 0,
            "multiedit": true
        },
        "invoicemargin": {
            "dbs": "mld_disc_params_factuurmarge",
            "label": L("mld_discipline_margin"),
            "iscurrency": true,
            "typ": "float",
            "defaultvalue": 0,
            "multiedit": true
        },
        "invoicematchmode": {
            "dbs": "mld_disc_params_factmatchmode",
            "label": L("mld_discipline_match"),
            "typ": "number",
            "LOV": L("mld_discipline_matchLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "invoiceapprove": {
            "dbs": "mld_disc_params_factuurappr",
            "label": L("mld_discipline_autofiat"),
            "typ": "check0",
            "multiedit": true
        },
        "invoicebelow": {
            "dbs": "mld_disc_params_factuurgrens",
            "label": L("mld_discipline_belowfiat"),
            "typ": "number",
            "multiedit": true
        },
        "emailnew1": {
            "dbs": "mld_disc_params_emailnw1",
            "label": L("mld_discipline_emailnw1"),
            "typ": "varchar",
            "multiedit": true
        },
        "smsnew1": {
            "dbs": "mld_disc_params_smsnw1",
            "label": L("mld_discipline_smsnw1"),
            "typ": "varchar",
            "multiedit": true
        },
        "emailnew2": {
            "dbs": "mld_disc_params_emailnw2",
            "label": L("mld_discipline_emailnw2"),
            "typ": "varchar",
            "multiedit": true
        },
        "smsnew2": {
            "dbs": "mld_disc_params_smsnw2",
            "label": L("mld_discipline_smsnw2"),
            "typ": "varchar",
            "multiedit": true
        },
        "emailnew3": {
            "dbs": "mld_disc_params_emailnw3",
            "label": L("mld_discipline_emailnw3"),
            "typ": "varchar",
            "multiedit": true
        },
        "smsnew3": {
            "dbs": "mld_disc_params_smsnw3",
            "label": L("mld_discipline_smsnw3"),
            "typ": "varchar",
            "multiedit": true
        },
        "notifybo": {
            "dbs": "mld_disc_params_bonotify",
            "label": L("mld_discipline_bonotify"),
            "typ": "number",
            "LOV": L("mld_discipline_bonotifyLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "notifybht": {
            "dbs": "mld_disc_params_bhgnotify",
            "label": L("mld_discipline_bhgnotify"),
            "typ": "number",
            "LOV": L("mld_discipline_bhgnotifyLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "notifybe": {
            "dbs": "mld_disc_params_benotify",
            "label": L("mld_discipline_benotify"),
            "typ": "check0",
            "multiedit": true
        },
        "notifynob": {
            "dbs": "mld_disc_params_nobnotify",
            "label": L("mld_discipline_nobnotify"),
            "typ": "check0",
            "multiedit": true
        },
        "notifycust": {
            "dbs": "mld_disc_params_notify",
            "label": L("mld_discipline_custnotify"),
            "typ": "number",
            "LOV": L("mld_discipline_custnotifyLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "reminderdays": {
            "dbs": "mld_disc_params_noti_dagen",
            "label": L("mld_discipline_noti_dagen"),
            "typ": "number",
            "multiedit": true
        },
        "mandatoryfrom": {
            "dbs": "mld_disc_params_opdr_kosten",
            "label": L("mld_discipline_opdr_kosten"),
            "typ": "number",
            "LOV": L("mld_discipline_opdr_kostenLOV"),
            "emptyoption": null,
            "multiedit": true
        },
        "activity": {
            "dbs": "fac_activiteit_key",
            "label": L("mld_discipline_activiteit"),
            "typ": "key",
            "foreign": {
                "tbl": "fac_activiteit",
                "key": "fac_activiteit_key",
                "desc": "fac_activiteit_omschrijving"
            }
        },
        "autooffer": {
            "dbs": "mld_disc_params_offerteauto",
            "label": L("mld_discipline_autoofferte"),
            "typ": "check0",
            "defaultvalue": 1,
            "multiedit": true
        },
        "fenotes": {
            "dbs": "mld_disc_params_fenotes",
            "label": L("mld_discipline_interactfe"),
            "typ": "number",
            "LOV": L("mld_discipline_interactfeLOV"),
            "defaultvalue": 0,
            "emptyoption": null,
            "multiedit": true
        },
        "offhours": {
            "dbs": "mld_disc_params_offhours",
            "label": L("mld_discipline_offhours"),
            "typ": "check0"
        },
        "issuegroup": {
            "dbs": "mld_disc_params_mldgroup",
            "label": L("lcl_mld_groepering"),
            "typ": "number",
            "defaultvalue": "0",
            "LOV": L("mld_disc_params_mldgroupLOV"),
            "emptyoption": null
        }
    }
}

api2.generic_REST(model_mld_disc_params);

%>