FSN#37089: Kostenplaats ook niet tonen voor Front Office.

svn path=/Website/trunk/; revision=40575
This commit is contained in:
Maykel Geerdink
2019-01-17 10:57:45 +00:00
parent a3814a6e4a
commit db5776bf3a
2 changed files with 39 additions and 10 deletions

View File

@@ -84,8 +84,41 @@ function model_mld_srtdiscipline()
"dbs": "ins_srtdiscipline_kostenklant",
"label": L("ins_srtdiscipline_kostenklant"),
"typ": "key",
"bits": [
{
"name": "",
"label": "",
"typ": "check",
"mask": 15,
"radios": [
{
"name": "fe_on",
"label": L("mgt_srtdisc_kk_fe_on"),
"mask": 1,
"defaultvalue": 0
},
{
"name": "fe_notshow",
"label": L("mgt_srtdisc_kk__fe_notshow"),
"mask": 2,
"defaultvalue": 0
},
{
"name": "fobo_on",
"label": L("mgt_srtdisc_kk_fobo_on"),
"mask": 4,
"defaultvalue": 0
},
{
"name": "fobo_notshow",
"label": L("mgt_srtdisc_kk__fobo_notshow"),
"mask": 8,
"defaultvalue": 0
}
]
}
],
"defaultvalue": "0",
"LOV": buildSrtdisciplineKostenklantList(),
"emptyoption": null
},
"description": {
@@ -109,14 +142,5 @@ function model_mld_srtdiscipline()
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);
function buildSrtdisciplineKostenklantList()
{
var kostenklantList = L("ins_srtdiscipline_kostenklantLOV1")
+ ";" + L("ins_srtdiscipline_kostenklantLOV2")
+ ";" + L("ins_srtdiscipline_kostenklantLOV3");
return kostenklantList;
}
}
%>

View File

@@ -49,6 +49,11 @@ scaffolding(this_model,
"icon": "doc_text_image.png"
}
]
},
"edit": {
"requires": {
"js": ["./mld_srtdiscipline.js"]
}
}
});
%>