<% /*
    $Revision$
    $Id$

    File:           model_mld_kosten.inc

    Description:    Vanuit CodeCharge gegenereerd model voor mld_kosten

    Context:

    Notes:
*/
%>
<%

function model_mld_kosten()
{
    this.table = "mld_kosten";
    this.primary = "mld_kosten_key";
    this.records_name = "mld_kostens";
    this.record_name = "mld_kosten";
    this.soft_delete = "mld_kosten_verwijder";
    this.autfunction = "WEB_MLDMGT";
    this.record_title = L("mld_kosten");
    this.records_title = L("mld_kosten_m");


    this.fields = {
        "id": {
            "dbs": "mld_kosten_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "mld_s_mld_kosten_key",
            "readonly": true
        },
        "code": {
            "dbs": "mld_kosten_code",
            "label": L("mld_kosten_code"),
            "typ": "varchar",
            "len": 10
        },
        "name": {
            "dbs": "mld_kosten_omschrijving",
            "label": L("mld_kosten_omschrijving"),
            "typ": "varchar",
            "translate": true,
            "required": true,
            "len": 60
        },
        "costtype": {
            "dbs": "mld_kosten_type",
            "label": L("mld_kosten_type"),
            "typ": "key",
            "required": true,
            "defaultvalue": "2",
            "LOV": L("mld_kosten_typeLOV"),
            "filter": "exact"
        },
        "costunit": {
            "dbs": "mld_kosten_eenheid",
            "label": L("mld_kosten_eenheid"),
            "typ": "varchar",
            "translate": true,
            "len": 15
        },
        "expenses": {
            "dbs": "mld_kosten_kosten",
            "label": L("mld_kosten_kosten"),
            "iscurrency": true,
            "typ": "float"
        }
    };


    this.REST_GET    = generic_REST_GET(this);
    this.REST_POST   = generic_REST_POST(this);
    this.REST_PUT    = generic_REST_PUT(this);
    this.REST_DELETE = generic_REST_DELETE(this, {});
}
%>