mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
dashboard fixes
This commit is contained in:
@@ -156,7 +156,7 @@ class DashboardWidget:
|
||||
and t1.posting_date between %s and %s
|
||||
""", (debit_or_credit, start, end))[0]
|
||||
|
||||
return debit_or_credit=='Credit' and (ret[1]-ret[0]) or (ret[0]-ret[1])
|
||||
return debit_or_credit=='Credit' and float(ret[1]-ret[0]) or float(ret[0]-ret[1])
|
||||
|
||||
def value(self, opts, start, end):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user