From 4990cf7783fbf7b800e36967ac82d43296027ffe Mon Sep 17 00:00:00 2001 From: tundebabzy Date: Wed, 31 Jan 2018 11:35:56 +0100 Subject: [PATCH] remove stray code --- erpnext/stock/doctype/batch/batch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/erpnext/stock/doctype/batch/batch.py b/erpnext/stock/doctype/batch/batch.py index 760643c4ec..3e5d351650 100644 --- a/erpnext/stock/doctype/batch/batch.py +++ b/erpnext/stock/doctype/batch/batch.py @@ -47,7 +47,6 @@ def get_batch_qty(batch_no=None, warehouse=None, item_code=None): :param batch_no: Optional - give qty for this batch no :param warehouse: Optional - give qty for this warehouse :param item_code: Optional - give qty for this item''' - frappe.has_permission('Batch', throw=True) out = 0 if batch_no and warehouse: out = float(frappe.db.sql("""select sum(actual_qty)