From 64568fb296769aa4a6b9155f859125d52c45add3 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 4 May 2015 16:16:12 +0530 Subject: [PATCH] Default expense account and cost center are always visible in item --- erpnext/stock/doctype/item/item.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erpnext/stock/doctype/item/item.json b/erpnext/stock/doctype/item/item.json index b34983df67f..282d1829c3d 100644 --- a/erpnext/stock/doctype/item/item.json +++ b/erpnext/stock/doctype/item/item.json @@ -428,6 +428,7 @@ "reqd": 1 }, { + "depends_on": "eval:doc.is_purchase_item==\"Yes\"", "fieldname": "default_supplier", "fieldtype": "Link", "ignore_user_permissions": 1, @@ -448,7 +449,7 @@ "read_only": 0 }, { - "depends_on": "eval:doc.is_purchase_item==\"Yes\"", + "depends_on": "", "description": "Default Purchase Account in which cost of the item will be debited.", "fieldname": "expense_account", "fieldtype": "Link", @@ -461,7 +462,7 @@ "read_only": 0 }, { - "depends_on": "eval:doc.is_purchase_item==\"Yes\"", + "depends_on": "", "description": "", "fieldname": "buying_cost_center", "fieldtype": "Link", @@ -877,7 +878,7 @@ "icon": "icon-tag", "idx": 1, "max_attachments": 1, - "modified": "2015-03-03 06:18:35.717586", + "modified": "2015-05-04 18:44:46.090445", "modified_by": "Administrator", "module": "Stock", "name": "Item",