<%@language = "javascript" %>

<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_bes_staffeltabel.inc" -->
<!-- #include file="../api2/model_bes_staffel.inc" -->

<%
var  this_model = new model_bes_staffeltabel();

this_model.includes = {
    "bes_staffels": {
        "model": new model_bes_staffel(),
        "joinfield": "bes_staffeltabel_key",
        "enable_update": true
    }
};

var incl_staffel = this_model.includes.bes_staffels.model;
incl_staffel.list = {
    "columns": [
        "id",
        "bes_staffeltabel_key",
        "bes_staffel_grenswaarde",
        "bes_staffel_korting"
    ]
};
incl_staffel.edit = {
    "modal": true
};
incl_staffel.print = {};


scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "bes_staffeltabel_naam",
                "fac_typestaffel_key"
            ]
        },
        "list": {
            "columns": [
                "id",
                "bes_staffeltabel_naam",
                "fac_typestaffel_key",
                "fac_typestaffel_groep"
            ]
        },
        "edit":{
            "modal": true
        }
    });
%>