Custom formatter using df.formatter

This commit is contained in:
Anand Doshi 2014-08-01 16:55:39 +05:30
parent 0df46b1f33
commit cd0cb8cdc7

View file

@ -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);
}