浏览代码

Merge branch 'hotfix'

version-14
mbauskar 8 年前
父节点
当前提交
d6e7aa5613
共有 2 个文件被更改,包括 8 次插入3 次删除
  1. +1
    -1
      frappe/__init__.py
  2. +7
    -2
      frappe/public/js/frappe/form/formatters.js

+ 1
- 1
frappe/__init__.py 查看文件

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import * from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template


__version__ = '8.5.3'
__version__ = '8.5.4'
__title__ = "Frappe Framework" __title__ = "Frappe Framework"


local = Local() local = Local()


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

@@ -64,8 +64,13 @@ frappe.form.formatters = {
precision = decimals.length; 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) { Check: function(value) {
if(value) { if(value) {


正在加载...
取消
保存