FSN#39055 BCS/2000 functionaliteit in FACILITOR - customization
svn path=/Website/trunk/; revision=33323
This commit is contained in:
@@ -57,7 +57,8 @@ function model_bgt_budgetmutatie()
|
||||
"dbs": "bgt_budgetmutatie_datum",
|
||||
"label": L("bgt_budgetmutatie_datum"),
|
||||
"typ": "date",
|
||||
"required": true
|
||||
"required": true,
|
||||
"defaultvalue": new Date()
|
||||
},
|
||||
"name": {
|
||||
"dbs": "bgt_budgetmutatie_omschrijving",
|
||||
@@ -133,16 +134,13 @@ function model_bgt_budgetmutatie()
|
||||
fld.amountto.label = L("bgt_budgetmutatie_bedrag");
|
||||
if (!obj.id) // nieuwe mutatie: wanneer en door wie wordt op de achtergrond gevuld
|
||||
{
|
||||
fld.mutationdate.hidden_fld = true;
|
||||
fld.adjustedby.hidden_fld = true;
|
||||
}
|
||||
else // bestaande mutatie: alleen de omschrijving is aan te passen
|
||||
{
|
||||
fld.mutationdate.readonly = true;
|
||||
fld.adjustedby.readonly = true;
|
||||
fld.budgetfrom.readonly = true;
|
||||
fld.budgetto.readonly = true;
|
||||
fld.amountto.readonly = true;
|
||||
}
|
||||
%>
|
||||
<script type="text/javascript">
|
||||
@@ -152,7 +150,6 @@ function model_bgt_budgetmutatie()
|
||||
|
||||
this.hook_pre_post = function (params, jsondata)
|
||||
{
|
||||
jsondata.mutationdate = new Date();
|
||||
jsondata.adjustedby = user_key;
|
||||
jsondata.amountfrom = jsondata.amountto * -1;
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user