<%@language = "javascript" %>

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

<%
var  this_model = new model_bes_discipline();

scaffolding(this_model,
    {
        "search": {
            "autosearch": true,
            "filters": [
                "costtype",
                "name"
            ],
            "transit": [
                "costtype"
            ]
        },
        "list": {
            "columns": [
                "id",
                "name",
                "costtype"
            ]
        },
        "edit": {
            "requires": {
                js: ["./ins_discipline.js", // NB: bes_discipline.js moet na ins_discipline.js staan.
                     "./bes_discipline.js"  //     Beide hebben een pre_submit(), dus de "bes" moet overrulen.
                ]
            }
        },
        "wrap": {
                "frames": [
                    {
                        url: "fac_functie.asp?mode=list&ins_discipline={0}",
                        title: L("fac_functie_m"),
                        autfunction: "WEB_PRSSYS"
                    }
                ]
            },
        "layout": {
            "block": [
                {   "blockid": "besBes",
                    "label": L("bes_discipline"),
                    "icon": "fa-book-open",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "id",
                        "name",
                        "module",
                        "remark",
                        "ordermode",
                        "photomode",
                        "fehidecost",
                        "singlegroup",
                        "maximumarticles",
                        "forothers",
                        "fedeliver",
                        "ordermandate",
                        "symbolname"
                    ]
                },
                {
                    "blockid": "besBehandel",
                    "label": L("bes_discipline_behandeling"),
                    "icon": "fa-clock",
                    "fields": [
                        "deliverytime",
                        "expiretime",
                        "approvalflow",
                        "orderdisciplines",
                        "acceptrequest",
                        "createorder",
                        "punchouturl",
                        "company",
                        "logourl",
                        "mutationallowed",
                        "remoteconfirm",
                        "feconfirm",
                        "autodeliver",
                        "returnallowd",
                        "returnurl",
                        "remarkurl"
                        ]
                },
                {
                    "blockid": "besNoti",
                    "label": L("bes_discipline_notification"),
                    "icon": "fa-bell-on",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "notifypurchaser",
                        "notifybackoffice",
                        "reminderdays"
                    ]
                },
                {   "blockid": "besFin",
                    "label": L("bes_discipline_financien"),
                    "icon": "fa-euro-sign",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "minimalamount",
                        "costtype",
                        "costcentremandatory",
                        "chargebudget",
                        "purchaseorderlimit1",
                        "purchaseorderlimit2",
                        "purchaseorderlimit3",
                        "purchaseorderlimit4",
                        "purchaseorderlimit5",
                        "deviationamount",
                        "deviationpercentage"
                    ]
                },
                {
                    "blockid": "besOverig",
                    "label": L("bes_discipline_overig"),
                    "icon": "fa-plus",
                    "fields": [
                        "subscription",
                        "contractdisciplines",
                        "contractperiod",
                        "noticeperiod",
                        "objectmode",
                        "satisfactionpercentage",
                        "satisfactionthreshold",
                        "externnr"
                   ]
                },
                {   "blockid": "besMtch",
                    "label": L("bes_discipline_match"),
                    "icon": "fa-file-check",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "invoicematching",
                        "invoicelimit",
                        "invoiceamount",
                        "invoicepercentage",
                        "approveinvoice"
                    ]
                }
            ]
       }

    });
%>
<% ASPPAGE_END(); %>
