fix: reset selling setting
This commit is contained in:
parent
591b5917a9
commit
179e2d2c74
@ -1108,6 +1108,9 @@ class TestDeliveryNote(FrappeTestCase):
|
|||||||
# Test that item qty is not reserved on sales return, if selling setting don't reserve qty is checked.
|
# Test that item qty is not reserved on sales return, if selling setting don't reserve qty is checked.
|
||||||
self.assertEqual(get_reserved_qty(item, warehouse), 0 if dont_reserve_qty else qty_to_reserve)
|
self.assertEqual(get_reserved_qty(item, warehouse), 0 if dont_reserve_qty else qty_to_reserve)
|
||||||
|
|
||||||
|
def tearDown(self):
|
||||||
|
frappe.db.set_single_value("Selling Settings", "dont_reserve_sales_order_qty_on_sales_return", 0)
|
||||||
|
|
||||||
|
|
||||||
def create_delivery_note(**args):
|
def create_delivery_note(**args):
|
||||||
dn = frappe.new_doc("Delivery Note")
|
dn = frappe.new_doc("Delivery Note")
|
||||||
|
Loading…
Reference in New Issue
Block a user