From 6823e8ed034665459b074d5cb9cf052cb7947610 Mon Sep 17 00:00:00 2001 From: marination Date: Tue, 4 Aug 2020 14:04:15 +0530 Subject: [PATCH] fix: Remove Duplicate Banket order method --- erpnext/controllers/queries.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/erpnext/controllers/queries.py b/erpnext/controllers/queries.py index 5c59fe0e1d..b402204072 100644 --- a/erpnext/controllers/queries.py +++ b/erpnext/controllers/queries.py @@ -395,20 +395,6 @@ def get_account_list(doctype, txt, searchfield, start, page_len, filters): fields = ["name", "parent_account"], limit_start=start, limit_page_length=page_len, as_list=True) -def get_blanket_orders(doctype, txt, searchfield, start, page_len, filters): - return frappe.db.sql("""select distinct bo.name, bo.blanket_order_type, bo.to_date - from `tabBlanket Order` bo, `tabBlanket Order Item` boi - where - boi.parent = bo.name - and boi.item_code = {item_code} - and bo.blanket_order_type = '{blanket_order_type}' - and bo.company = {company} - and bo.docstatus = 1""" - .format(item_code = frappe.db.escape(filters.get("item")), - blanket_order_type = filters.get("blanket_order_type"), - company = frappe.db.escape(filters.get("company")) - )) - @frappe.whitelist() def get_blanket_orders(doctype, txt, searchfield, start, page_len, filters): return frappe.db.sql("""select distinct bo.name, bo.blanket_order_type, bo.to_date