mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 09:47:14 +00:00
fix: format values for charts
This commit is contained in:
@@ -599,9 +599,12 @@ class ReceivablePayableReport(object):
|
||||
|
||||
rows = []
|
||||
for d in data:
|
||||
values = d[self.ageing_col_idx_start : self.ageing_col_idx_start+5]
|
||||
precision = cint(frappe.db.get_default("float_precision")) or 2
|
||||
formatted_values = [frappe.utils.rounded(val, precision) for val in values]
|
||||
rows.append(
|
||||
{
|
||||
'values': d[self.ageing_col_idx_start : self.ageing_col_idx_start+5]
|
||||
'values': formatted_values
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user