From 9d1e8b61fe2989f0126399d3953c196a3f9116f4 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Mon, 25 Aug 2014 16:37:13 +0530 Subject: [PATCH] [Fix] Issue #980 final --- erpnext/accounts/doctype/cost_center/test_records.json | 7 +++++++ erpnext/setup/doctype/item_group/test_records.json | 3 ++- erpnext/stock/doctype/item/test_item.py | 2 +- erpnext/stock/doctype/item/test_records.json | 1 - 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/cost_center/test_records.json b/erpnext/accounts/doctype/cost_center/test_records.json index 9e3e011fe2..7ffc687a9c 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 d85fa2266b..60336f0c08 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 7ab93ebf4c..56150cabac 100644 --- a/erpnext/stock/doctype/item/test_item.py +++ b/erpnext/stock/doctype/item/test_item.py @@ -27,7 +27,7 @@ class TestItem(unittest.TestCase): "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 761d4f2707..a256149571 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"