<% /*
    $Revision$
    $Id$

    File:           model_fin_btwtabelwaarde.inc

    Description:    Vanuit CodeCharge gegenereerd model voor fin_btwtabelwaarde

    Context:

    Notes:
*/
%>
<%

function model_fin_btwtabelwaarde()
{
    this.table = "fin_btwtabelwaarde";
    this.primary = "fin_btwtabelwaarde_key";
    this.records_name = "fin_btwtabelwaardes";
    this.record_name = "fin_btwtabelwaarde";
    this.soft_delete = "fin_btwtabelwaarde_verwijder";
    this.autfunction = "WEB_FINMSU";
    this.record_title = L("fin_btwtabelwaarde");
    this.records_title = L("fin_btwtabelwaarde_m");


    this.fields = {
        "id": {
            "dbs": "fin_btwtabelwaarde_key",
            "label": "Key",
            "typ": "key",
            "required": true,
            "filter": "exact",
            "seq": "fin_s_fin_btwtabelwaarde_key"
        },
        "table": {
            "dbs": "fin_btwtabel_key",
            "label": L("fin_btwtabel"),
            "typ": "key",
            "foreign": {
                "tbl": "fin_btwtabel",
                "key": "fin_btwtabel_key",
                "desc": "fin_btwtabel_omschrijving"
            }
        },
        "code": {
            "dbs": "fin_btwtabelwaarde_code",
            "label": L("fin_btwtabelwaarde_code"),
            "typ": "varchar"
        },
        "name": {
            "dbs": "fin_btwtabelwaarde_oms",
            "label": L("fin_btwtabelwaarde_oms"),
            "typ": "varchar",
            "translate": true
        },
        "percentage": {
            "dbs": "fin_btwtabelwaarde_perc",
            "label": L("fin_btwtabelwaarde_perc"),
            "typ": "float",
            "defaultvalue": "0"
        },
        "shifted": {
            "dbs": "fin_btwtabelwaarde_verlegd",
            "label": L("fin_btwtabelwaarde_verlegd"),
            "typ": "check"
        }
    };


    this.list = {
        "columns": [
            "id",
            "table",
            "code",
            "name",
            "percentage",
            "shifted"
        ]
    };
    this.search = {
        "autosearch": true
    };
    this.edit = {
        "modal": true
    };

    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);
}
%>