fix: internal customer util returns str not doc object
This commit is contained in:
parent
45edfd9d50
commit
501b91a608
@ -433,7 +433,7 @@ class TestDeliveryNote(unittest.TestCase):
|
||||
from erpnext.selling.doctype.customer.test_customer import create_internal_customer
|
||||
|
||||
company = frappe.db.get_value('Warehouse', 'Stores - TCP1', 'company')
|
||||
customer = create_internal_customer(
|
||||
customer_name = create_internal_customer(
|
||||
customer_name="_Test Internal Customer 2",
|
||||
represents_company="_Test Company with perpetual inventory",
|
||||
allowed_to_interact_with="_Test Company with perpetual inventory"
|
||||
@ -454,7 +454,7 @@ class TestDeliveryNote(unittest.TestCase):
|
||||
dn = create_delivery_note(
|
||||
item_code="_Test Product Bundle Item",
|
||||
company="_Test Company with perpetual inventory",
|
||||
customer=customer.name,
|
||||
customer=customer_name,
|
||||
cost_center = 'Main - TCP1',
|
||||
expense_account = "Cost of Goods Sold - TCP1",
|
||||
do_not_submit=True,
|
||||
|
Loading…
x
Reference in New Issue
Block a user