FSN#39055 BCS/2000 functionaliteit in FACILITOR - customization
svn path=/Website/branches/v2017.1/; revision=33994
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user