From 5467d7c3e325ec8915000cb47dccbd5a2b70b5a5 Mon Sep 17 00:00:00 2001 From: Marica Date: Fri, 9 Apr 2021 11:56:49 +0530 Subject: [PATCH] fix: Use system precision instead of SLE precision --- erpnext/stock/dashboard/item_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/dashboard/item_dashboard.py b/erpnext/stock/dashboard/item_dashboard.py index 80afe31cf37..45e662807a0 100644 --- a/erpnext/stock/dashboard/item_dashboard.py +++ b/erpnext/stock/dashboard/item_dashboard.py @@ -43,7 +43,7 @@ def get_data(item_code=None, warehouse=None, item_group=None, limit_start=start, limit_page_length='21') - precision = get_field_precision(frappe.get_meta("Stock Ledger Entry").get_field("stock_value")) + precision = cint(frappe.db.get_single_value("System Settings", "float_precision")) for item in items: item.update({