refactor: use db.get_single_value
diff --git a/erpnext/stock/reorder_item.py b/erpnext/stock/reorder_item.py
index a6f52f3..4cd9cbb 100644
--- a/erpnext/stock/reorder_item.py
+++ b/erpnext/stock/reorder_item.py
@@ -18,7 +18,7 @@
if not (frappe.db.a_row_exists("Company") and frappe.db.a_row_exists("Fiscal Year")):
return
- if cint(frappe.db.get_value("Stock Settings", None, "auto_indent")):
+ if cint(frappe.db.get_single_value("Stock Settings", "auto_indent")):
return _reorder_item()
@@ -212,7 +212,7 @@
if mr_list:
if getattr(frappe.local, "reorder_email_notify", None) is None:
frappe.local.reorder_email_notify = cint(
- frappe.db.get_value("Stock Settings", None, "reorder_email_notify")
+ frappe.db.get_single_value("Stock Settings", "reorder_email_notify")
)
if frappe.local.reorder_email_notify: