[Fix] Issue #980 final
diff --git a/erpnext/accounts/doctype/cost_center/test_records.json b/erpnext/accounts/doctype/cost_center/test_records.json
index 9e3e011..7ffc687 100644
--- a/erpnext/accounts/doctype/cost_center/test_records.json
+++ b/erpnext/accounts/doctype/cost_center/test_records.json
@@ -15,5 +15,12 @@
"doctype": "Cost Center",
"group_or_ledger": "Ledger",
"parent_cost_center": "_Test Company - _TC"
+ },
+ {
+ "company": "_Test Company",
+ "cost_center_name": "_Test Cost Center 2",
+ "doctype": "Cost Center",
+ "group_or_ledger": "Ledger",
+ "parent_cost_center": "_Test Company - _TC"
}
]
\ No newline at end of file
diff --git a/erpnext/setup/doctype/item_group/test_records.json b/erpnext/setup/doctype/item_group/test_records.json
index d85fa22..60336f0 100644
--- a/erpnext/setup/doctype/item_group/test_records.json
+++ b/erpnext/setup/doctype/item_group/test_records.json
@@ -3,7 +3,8 @@
"doctype": "Item Group",
"is_group": "No",
"item_group_name": "_Test Item Group",
- "parent_item_group": "All Item Groups"
+ "parent_item_group": "All Item Groups",
+ "default_cost_center": "_Test Cost Center 2 - _TC"
},
{
"doctype": "Item Group",
diff --git a/erpnext/stock/doctype/item/test_item.py b/erpnext/stock/doctype/item/test_item.py
index 7ab93eb..56150ca 100644
--- a/erpnext/stock/doctype/item/test_item.py
+++ b/erpnext/stock/doctype/item/test_item.py
@@ -27,7 +27,7 @@
"warehouse": "_Test Warehouse - _TC",
"income_account": "Sales - _TC",
"expense_account": "_Test Account Cost for Goods Sold - _TC",
- "cost_center": "_Test Cost Center - _TC",
+ "cost_center": "_Test Cost Center 2 - _TC",
"qty": 1.0,
"price_list_rate": 100.0,
"base_price_list_rate": 0.0,
diff --git a/erpnext/stock/doctype/item/test_records.json b/erpnext/stock/doctype/item/test_records.json
index 761d4f2..a256149 100644
--- a/erpnext/stock/doctype/item/test_records.json
+++ b/erpnext/stock/doctype/item/test_records.json
@@ -28,7 +28,6 @@
"warehouse_reorder_qty": 20
}
],
- "selling_cost_center": "_Test Cost Center - _TC",
"stock_uom": "_Test UOM",
"show_in_website": 1,
"website_warehouse": "_Test Warehouse - _TC"