refactor(test): unset billing address

This commit is contained in:
ruthra kumar
2025-03-12 17:34:23 +05:30
parent 38dabdf584
commit 3737b4a300

View File

@@ -2136,7 +2136,7 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase):
self.assertEqual(dn.items[0].rate, 90)
def test_credit_limit_on_so_reopning(self):
def test_credit_limit_on_so_reopening(self):
# set credit limit
company = "_Test Company"
customer = frappe.get_doc("Customer", self.customer)
@@ -2148,12 +2148,14 @@ class TestSalesOrder(AccountsTestMixin, FrappeTestCase):
so1 = make_sales_order(qty=9, rate=100, do_not_submit=True)
so1.customer = self.customer
so1.customer_address = so1.shipping_address_name = None
so1.save().submit()
so1.update_status("Closed")
so2 = make_sales_order(qty=9, rate=100, do_not_submit=True)
so2.customer = self.customer
so2.customer_address = so2.shipping_address_name = None
so2.save().submit()
self.assertRaises(frappe.ValidationError, so1.update_status, "Draft")