From 0ca76323af5efea64cc0e3033b43437b6d2eb770 Mon Sep 17 00:00:00 2001 From: Jamsheer Date: Mon, 11 Jun 2018 17:25:49 +0530 Subject: [PATCH] Clinical Procedure Template - get_item_details - fix (#14449) --- .../clinical_procedure_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py b/erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py index 565fe9021d..90bf95770f 100644 --- a/erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py +++ b/erpnext/healthcare/doctype/clinical_procedure_template/clinical_procedure_template.py @@ -33,8 +33,8 @@ class ClinicalProcedureTemplate(Document): frappe.throw("""Not permitted. Please disable the Procedure Template""") def get_item_details(self, args=None): - item = frappe.db.sql("""select stock_uom, description, image, item_name, - expense_account, buying_cost_center, item_group from `tabItem` + item = frappe.db.sql("""select stock_uom, item_name + from `tabItem` where name = %s and disabled=0 and (end_of_life is null or end_of_life='0000-00-00' or end_of_life > %s)""",