FSN#38471 Bedragen via scaffolding centen tonen
svn path=/Website/trunk/; revision=31544
This commit is contained in:
@@ -48,6 +48,7 @@ function model_cnt_factuurschema()
|
||||
"amount": {
|
||||
"dbs": "cnt_factuurschema_bedrag",
|
||||
"typ": "float",
|
||||
"iscurrency": true,
|
||||
"required": true,
|
||||
"label": L("lcl_cnt_period_sum")
|
||||
},
|
||||
|
||||
@@ -193,6 +193,9 @@ function scf_ROFIELDTR(model, fld, val, key, params)
|
||||
else if (typeof txt == "date" || txt instanceof Date)
|
||||
txt = toDateString(txt);
|
||||
}
|
||||
if (field.iscurrency)
|
||||
txt = safe.curr(txt);
|
||||
|
||||
var params = { title: title, infoPointer: infoPointer };
|
||||
if (field.translate && key)
|
||||
params.translate = { fld: field.dbs, key: key }
|
||||
@@ -527,6 +530,8 @@ function scf_RWFIELDTR(model, fld, val, key, params)
|
||||
case "float": params.datatype = field.typ; break;
|
||||
default: params.datatype = "";
|
||||
}
|
||||
if (field.iscurrency)
|
||||
val = safe.curreditable(val);
|
||||
RWFIELDTR(fld, "fld", field.label, val, params);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user