mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 12:38:27 +00:00
fixes to dashboard
This commit is contained in:
@@ -107,11 +107,12 @@ class DashboardWidget:
|
|||||||
"""
|
"""
|
||||||
Generate the dasboard
|
Generate the dasboard
|
||||||
"""
|
"""
|
||||||
|
from webnotes.utils import flt
|
||||||
tl = self.timeline()
|
tl = self.timeline()
|
||||||
self.out = []
|
self.out = []
|
||||||
|
|
||||||
for i in range(len(tl)-1):
|
for i in range(len(tl)-1):
|
||||||
self.out.append([tl[i+1].strftime('%Y-%m-%d'), self.value(opts, tl[i], tl[i+1]) or 0])
|
self.out.append([tl[i+1].strftime('%Y-%m-%d'), flt(self.value(opts, tl[i], tl[i+1])) or 0])
|
||||||
|
|
||||||
return self.out
|
return self.out
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user