From ccaf36a00f42863eb5031f775329f307d2ee11db Mon Sep 17 00:00:00 2001 From: mbauskar Date: Mon, 10 Jul 2017 16:04:52 +0530 Subject: [PATCH] [minor] fixed depends on for stock entry expense_account and purchase receipt item's cost_center field --- .../purchase_receipt_item/purchase_receipt_item.json | 4 ++-- .../doctype/stock_entry_detail/stock_entry_detail.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json index 5f1e9440bd..aca77a5c4c 100755 --- a/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json +++ b/erpnext/stock/doctype/purchase_receipt_item/purchase_receipt_item.json @@ -1597,7 +1597,7 @@ "collapsible": 0, "columns": 0, "default": ":Company", - "depends_on": "eval:cint(sys_defaults.auto_accounting_for_stock)", + "depends_on": "eval:cint(erpnext.is_perpetual_inventory_enabled(parent.company))", "fieldname": "cost_center", "fieldtype": "Link", "hidden": 0, @@ -2044,7 +2044,7 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2017-06-16 17:23:01.404744", + "modified": "2017-07-10 06:31:31.457497", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt Item", diff --git a/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json b/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json index ec14aabc4b..6afb54ee2e 100644 --- a/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json +++ b/erpnext/stock/doctype/stock_entry_detail/stock_entry_detail.json @@ -960,7 +960,7 @@ "bold": 0, "collapsible": 0, "columns": 0, - "depends_on": "eval:cint(frappe.sys_defaults.auto_accounting_for_stock)", + "depends_on": "eval:cint(erpnext.is_perpetual_inventory_enabled(parent.company))", "fieldname": "expense_account", "fieldtype": "Link", "hidden": 0, @@ -1020,7 +1020,7 @@ "collapsible": 0, "columns": 0, "default": ":Company", - "depends_on": "eval:cint(frappe.sys_defaults.auto_accounting_for_stock)", + "depends_on": "eval:cint(erpnext.is_perpetual_inventory_enabled(parent.company))", "fieldname": "cost_center", "fieldtype": "Link", "hidden": 0, @@ -1266,7 +1266,7 @@ "issingle": 0, "istable": 1, "max_attachments": 0, - "modified": "2017-06-16 17:32:56.989049", + "modified": "2017-07-10 06:29:22.805345", "modified_by": "Administrator", "module": "Stock", "name": "Stock Entry Detail",