瀏覽代碼

minor fix

version-14
Nabin Hait 10 年之前
父節點
當前提交
3313acf58c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/model/base_document.py

+ 1
- 1
frappe/model/base_document.py 查看文件

@@ -524,7 +524,7 @@ class BaseDocument(object):

def cast(self, val, df):
if df.fieldtype in ("Currency", "Float", "Percent"):
val = flt(val, self.precision(df.fieldname))
val = flt(val)

elif df.fieldtype in ("Int", "Check"):
val = cint(val)


Loading…
取消
儲存