mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
refactor(test): make price list and update selling settings
This commit is contained in:
@@ -196,10 +196,18 @@ class ERPNextTestSuite(unittest.TestCase):
|
|||||||
cls.make_item_attribute()
|
cls.make_item_attribute()
|
||||||
cls.make_item()
|
cls.make_item()
|
||||||
cls.make_location()
|
cls.make_location()
|
||||||
|
cls.make_price_list()
|
||||||
|
cls.update_selling_settings()
|
||||||
cls.update_stock_settings()
|
cls.update_stock_settings()
|
||||||
|
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def update_selling_settings(cls):
|
||||||
|
selling_settings = frappe.get_doc("Selling Settings")
|
||||||
|
selling_settings.selling_price_list = "Standard Selling"
|
||||||
|
selling_settings.save()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def update_stock_settings(cls):
|
def update_stock_settings(cls):
|
||||||
stock_settings = frappe.get_doc("Stock Settings")
|
stock_settings = frappe.get_doc("Stock Settings")
|
||||||
|
|||||||
Reference in New Issue
Block a user