FSN#39055 BCS/2000 functionaliteit in FACILITOR - customization
svn path=/Website/branches/v2017.1/; revision=33981
This commit is contained in:
@@ -42,7 +42,7 @@ function model_fin_factuur()
|
||||
},
|
||||
"month": {
|
||||
"dbs": "fin_factuur_boekmaand",
|
||||
"label": "boekmaand",
|
||||
"label": L("lcl_fin_boekmaand"),
|
||||
"typ": "varchar"
|
||||
},
|
||||
"date": {
|
||||
@@ -60,7 +60,7 @@ function model_fin_factuur()
|
||||
},
|
||||
"order": {
|
||||
"dbs": "mld_opdr_key",
|
||||
"label": "opdracht",
|
||||
"label": L("lcl_fin_mld_opdr"),
|
||||
"typ": "key",
|
||||
"required": true,
|
||||
"foreign": {
|
||||
@@ -107,7 +107,7 @@ function model_fin_factuur()
|
||||
"totalincl": {
|
||||
"dbs": "fin_factuur_totaal_incl",
|
||||
"sql": "fin_factuur_totaal + fin_factuur_totaal_btw",
|
||||
"label": "Incl. BTW",
|
||||
"label": L("lcl_fin_total_sum"),
|
||||
"typ": "float",
|
||||
"iscurrency": true,
|
||||
"total": true,
|
||||
@@ -141,6 +141,9 @@ function model_fin_factuur()
|
||||
var new_inv = cur_inv + "/" + (cur_seq + 1);
|
||||
obj.invoice = new_inv;
|
||||
}
|
||||
// De opdracht moet wel gewijzigd kunnen worden bij het klonen.
|
||||
if (!obj.id)
|
||||
fld.order.readonly = false;
|
||||
}
|
||||
|
||||
this.hook_pre_post = function(params, obj)
|
||||
@@ -148,12 +151,11 @@ function model_fin_factuur()
|
||||
// Wordt alleen gebruikt bij toevoegen.
|
||||
}
|
||||
|
||||
|
||||
this.hook_pre_put = function(params, obj, key)
|
||||
{ //wijzigen factuur: bepaal ook opnieuw de som van de factuurregels.
|
||||
}
|
||||
|
||||
this.REST_GET = generic_REST_GET(this); //, gparams);
|
||||
this.REST_GET = generic_REST_GET(this);
|
||||
this.REST_POST = generic_REST_POST(this);
|
||||
this.REST_PUT = generic_REST_PUT(this);
|
||||
this.REST_DELETE = generic_REST_DELETE(this);
|
||||
|
||||
@@ -58,6 +58,5 @@ scaffolding(this_model,
|
||||
"js": ["../bgt/bgt_budget.js"]
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
%>
|
||||
Reference in New Issue
Block a user