mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
refactor: use db.get_single_value
This commit is contained in:
@@ -35,8 +35,8 @@ class TestSalesOrder(FrappeTestCase):
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.unlink_setting = int(
|
||||
frappe.db.get_value(
|
||||
"Accounts Settings", "Accounts Settings", "unlink_advance_payment_on_cancelation_of_order"
|
||||
frappe.db.get_single_value(
|
||||
"Accounts Settings", "unlink_advance_payment_on_cancelation_of_order"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ def execute(filters=None):
|
||||
if not filters:
|
||||
filters = {}
|
||||
# Check if customer id is according to naming series or customer name
|
||||
customer_naming_type = frappe.db.get_value("Selling Settings", None, "cust_master_name")
|
||||
customer_naming_type = frappe.db.get_single_value("Selling Settings", "cust_master_name")
|
||||
columns = get_columns(customer_naming_type)
|
||||
|
||||
data = []
|
||||
|
||||
Reference in New Issue
Block a user