fix: Use system precision instead of SLE precision

This commit is contained in:
Marica 2021-04-09 11:56:49 +05:30 committed by GitHub
parent a7ac01153e
commit 5467d7c3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ def get_data(item_code=None, warehouse=None, item_group=None,
limit_start=start, limit_start=start,
limit_page_length='21') 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: for item in items:
item.update({ item.update({