mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 06:48:31 +00:00
fix: internal customer util returns str not doc object
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user