FSN#39055 BCS/2000 functionaliteit in FACILITOR - customization

svn path=/Website/branches/v2017.1/; revision=33994
This commit is contained in:
Erik Groener
2017-05-24 11:44:24 +00:00
parent fefcde83ea
commit ba82265043
2 changed files with 15 additions and 24 deletions

View File

@@ -104,9 +104,9 @@ function model_prs_kostencombinatie()
")"
]
}
});
this.REST_POST = generic_REST_POST(this);
this.REST_PUT = generic_REST_PUT(this);
this.REST_DELETE = generic_REST_DELETE(this);

View File

@@ -125,41 +125,32 @@ function model_prs_kostensoort()
}
};
this.includes = {
"costcombinations": {
"model": new model_prs_kostencombinatie(),
"joinfield": "costtype",
"enable_update": true,
"multiadd": "group"
}
};
if (S("bgt_enabled")) // alleen voor budgetcontrole
{
delete this.fields.charge;
this.includes["budget"] = {
"model": new model_bgt_budget(),
"joinfield": "costtype",
"enable_update": true
this.includes = {
"budget": {
"model": new model_bgt_budget(),
"joinfield": "costtype",
"enable_update": true
}
};
this.print = { xmlnode: "budget", where: "kostensoort"};
}
else
{
delete this.fields.vat;
this.includes = {
"costcombinations": {
"model": new model_prs_kostencombinatie(),
"joinfield": "costtype",
"enable_update": true,
"multiadd": "group"
}
};
}
// this.hook_pre_edit = function(obj, fld)
// {
if (!S("bgt_enabled"))
{
// verwijder het btw-percentage veld.
// btw-waarde zichtbaar
// als inc_btw = 1 dan weer niet, en btw-waarde = leeg (tenminste bij opslaan
}
// }
this.REST_GET = generic_REST_GET(this);
this.REST_POST = generic_REST_POST(this);