mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 03:15:07 +00:00
refactor(test): unset billing address
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user