Custom formatter using df.formatter
This commit is contained in:
parent
0df46b1f33
commit
cd0cb8cdc7
1 changed files with 3 additions and 1 deletions
|
|
@ -135,5 +135,7 @@ frappe.format = function(value, df, options, doc) {
|
|||
df._options = doc ? doc[df.options] : null;
|
||||
}
|
||||
|
||||
return frappe.form.get_formatter(fieldtype)(value, df, options, doc);
|
||||
formatter = df.formatter || frappe.form.get_formatter(fieldtype);
|
||||
|
||||
return formatter(value, df, options, doc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue