<%@language = "javascript" %>
<% /*
    $Revision$
    $Id$

    File:           bgt_budgetmutatie.asp

    Description:    aanroep van model_bgt_budgetmutatie

    Context:

    Notes:
*/
%>
<!-- #include file="../scf/scaffolding.inc" -->
<!-- #include file="../api2/model_bgt_budgetmutatie.inc" -->
<%
var p_budget_key = getQParamInt("budgetcommon", -1);
var this_model = new model_bgt_budgetmutatie();

scaffolding(this_model,
    {
        "search": {
            "filters": [
                 "budgetdiscipline",
                 "budgetproject",
                 "budgetcostcategory",
                 "code"
            ],
            "transit": [
                "budgetdiscipline",
                "budgetproject",
                "budgetcostcategory"
            ],
            "requires": {
                "js": ["../bgt/bgt_budget.js"]
            }
        },
        "list": {
            "columns": [
                "mutationdate",
                "sequence",
                "code",
                //"ident",
                "name",
                "budgetfrom",
                "amountfromexc",
                "amountfromvat",
                "budgetto",
                "amounttoexc",
                "amounttovat"
            ],
            "orderby": [
                "code",
                "sequence",
                "mutationdate",
                "budgetfrom"
            ]
        },
        "edit":{
            "requires": {
                "js": ["../bgt/bgt_budgetmutatie.js"]
            },
            "modal": true
        },
        "filter": {
            "nolimit": true
        },
        "transit": {
            "budgetcommon": p_budget_key
        },
        "layout": {
            "miscellaneous": L("lcl_mld_miscellaneous_fields"),
            "block": [
                {
                    "blockid": "mldAlg",
                    "label": L("bgt_budgetmutatie"),
                    "icon": "fa-money-bill-transfer",
                    "ishtmlsafe": true,
                    "hidden": false,
                    "buttons": [],
                    "fields": [
                        "mutationdate",
                        "name",
                        "code",
                        "sequence",
                        "adjustedby"
                    ]
                },
                {
                    "blockid": "scfLayout_L",
                    "label": L("bgt_budgetmutatie_van"),
                    "icon": "fa-arrow-right-from-line",
                    "fields": [
                        "budgetfrom",
                        "amountfrom",
                        "vatfrom",
                        "amountfrominc"
                    ]
                },
                {
                    "blockid": "scfLayout_R",
                    "label": L("bgt_budgetmutatie_naar"),
                    "icon": "fa-arrow-right-to-line",
                    "fields": [
                        "budgetto",
                        "amountto",
                        "vatto",
                        "amounttoinc"
                    ]
                },
                {
                    "blockid": "mldAlg",
                    "label": L("lcl_mld_hidden_fields"),
                    "hidden": true,
                    "fields": [
                    ]
                }
            ]
        }
    });
%><% ASPPAGE_END(); %>
