瀏覽代碼

[fix] filter formatting (#3729)

version-14
Rushabh Mehta 8 年之前
committed by Makarand Bauskar
父節點
當前提交
a99b49be96
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      frappe/public/js/frappe/form/formatters.js

+ 7
- 2
frappe/public/js/frappe/form/formatters.js 查看文件

@@ -64,8 +64,13 @@ frappe.form.formatters = {
precision = decimals.length;
}
}
return frappe.form.formatters._right((value==null || value==="")
? "" : format_currency(value, currency, precision), options);
value = (value==null || value==="") ?
"" : format_currency(value, currency, precision);
if (options.for_print) {
return value;
} else {
return frappe.form.formatters._right(value, options);
}
},
Check: function(value) {
if(value) {


Loading…
取消
儲存