<% /*
    $Revision$
    $Id$

    File:           model_mld_disc_params.inc

    Description:

    Context:

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


    "fields": {
        "id": {
            "dbs": "mld_disc_params_key",
            "label": "Key",
            "typ": "key",
            "seq": "res_s_mld_disc_params_key"
        },
        "mld_ins_discipline_key": {
            "dbs": "mld_ins_discipline_key",
            "label": "Foreign key",
            "typ": "key",
            "hidden_fld": true
        },
        "treatmentgroup": {
            "dbs": "mld_behandelgroep_key",
            "label": L("mld_behandelgroep"),
            "typ": "key",
            "foreign": {
              "tbl": "mld_behandelgroep",
              "key": "mld_behandelgroep_key",
              "desc": "mld_behandelgroep_naam"
            },
            "filter": "exact"
        },
        "orderlimit1": {
            "dbs": "mld_disc_params_bestellimiet",
            "label": L("mld_discipline_bestellimiet1"),
            "iscurrency": true,
            "typ": "float"
        },
        "orderlimit2": {
            "dbs": "mld_disc_params_bestellimiet2",
            "label": L("mld_discipline_bestellimiet2"),
            "iscurrency": true,
            "typ": "float"
        },
        "orderlimit3": {
            "dbs": "mld_disc_params_bestellimiet3",
            "label": L("mld_discipline_bestellimiet3"),
            "iscurrency": true,
            "typ": "float"
        },
        "orderlimit4": {
            "dbs": "mld_disc_params_bestellimiet4",
            "label": L("mld_discipline_bestellimiet4"),
            "iscurrency": true,
            "typ": "float"
        },
        "orderlimit5": {
            "dbs": "mld_disc_params_bestellimiet5",
            "label": L("mld_discipline_bestellimiet5"),
            "iscurrency": true,
            "typ": "float"
        },
        "chargebudget": {
            "dbs": "mld_disc_params_pgb",
            "label": L("mld_discipline_pgb"),
            "typ": "number",
            "LOV": L("mld_discipline_pgbLOV"),
            "emptyoption": null
        },
        "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
        },
        "forward": {
            "dbs": "mld_disc_params_keten",
            "label": L("mld_discipline_forward"),
            "typ": "check0"
        },
        "mld_disc_params_frontendprio": {
            "dbs": "mld_disc_params_frontendprio",
            "label": L("mld_discipline_setprio"),
            "typ": "check0"
        },
        "owncost": {
            "dbs": "mld_disc_params_eigen_kp",
            "label": L("mld_discipline_eigenkp"),
            "typ": "check0"
        },
        "invoicemarginpct": {
            "dbs": "mld_disc_params_factuurpct",
            "label": L("mld_discipline_marginpct"),
            "typ": "number",
            "defaultvalue": 0
        },
        "invoicemargin": {
            "dbs": "mld_disc_params_factuurmarge",
            "label": L("mld_discipline_margin"),
            "iscurrency": true,
            "typ": "float",
            "defaultvalue": 0
        },
        "invoicematchmode": {
            "dbs": "mld_disc_params_factmatchmode",
            "label": L("mld_discipline_match"),
            "typ": "number",
            "LOV": L("mld_discipline_matchLOV"),
            "emptyoption": null
        },
        "invoiceapprove": {
            "dbs": "mld_disc_params_factuurappr",
            "label": L("mld_discipline_autofiat"),
            "typ": "check0"
        },
        "invoicebelow": {
            "dbs": "mld_disc_params_factuurgrens",
            "label": L("mld_discipline_belowfiat"),
            "typ": "number"
        },
        "notifybo": {
            "dbs": "mld_disc_params_bonotify",
            "label": L("mld_discipline_bonotify"),
            "typ": "number",
            "LOV": L("mld_discipline_bonotifyLOV"),
            "emptyoption": null
        },
        "notifybe": {
            "dbs": "mld_disc_params_benotify",
            "label": L("mld_discipline_benotify"),
            "typ": "check0"
        },
        "notifycust": {
            "dbs": "mld_disc_params_notify",
            "label": L("mld_discipline_custnotify"),
            "typ": "number",
            "LOV": L("mld_discipline_custnotifyLOV"),
            "emptyoption": null
        },
        "reminderdays": {
            "dbs": "mld_disc_params_noti_dagen",
            "label": L("mld_discipline_noti_dagen"),
            "typ": "number"
        },
        "mandatoryfrom": {
            "dbs": "mld_disc_params_opdr_kosten",
            "label": L("mld_discipline_opdr_kosten"),
            "typ": "number",
            "LOV": L("mld_discipline_opdr_kostenLOV"),
            "emptyoption": null
        },
        "activity": {
            "dbs": "fac_activiteit_key",
            "label": L("mld_discipline_activiteit"),
            "typ": "key",
            "foreign": {
                "tbl": "fac_activiteit",
                "key": "fac_activiteit_key",
                "desc": "fac_activiteit_omschrijving"
            },
            "emptyoption": null
        },
        "autooffer": {
            "dbs": "mld_disc_params_offerteauto",
            "label": L("mld_discipline_autoofferte"),
            "typ": "check0",
            "defaultvalue": 1
        },
        "fenotes": {
            "dbs": "mld_disc_params_fenotes",
            "label": L("mld_discipline_interactfe"),
            "typ": "number",
            "LOV": L("mld_discipline_interactfeLOV"),
            "defaultvalue": 0,
            "emptyoption": null
        },
        "offhours": {
            "dbs": "mld_disc_params_offhours",
            "label": L("mld_discipline_offhours"),
            "typ": "check0"
        }
    }
}

api2.generic_REST(model_mld_disc_params);

%>