This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
minor fix
version-14
Nabin Hait
10 years ago
parent
0f3a5a5a69
commit
3313acf58c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
frappe/model/base_document.py
+ 1
- 1
frappe/model/base_document.py
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save