From 6f48d4be1ce02f2d12377dc45f87ffd528053bce Mon Sep 17 00:00:00 2001 From: nick9822 Date: Mon, 9 Jan 2017 12:12:36 +0530 Subject: [PATCH] whitelisted erpnext.stock.utils.get_stock_balance (#7402) whitelisted erpnext.stock.utils.get_stock_balance with respect to https://github.com/frappe/erpnext/issues/7364 --- erpnext/stock/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 6797f8e04b..fd1ece2151 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py @@ -45,6 +45,7 @@ def get_stock_value_on(warehouse=None, posting_date=None, item_code=None): return sum(sle_map.values()) +@frappe.whitelist() def get_stock_balance(item_code, warehouse, posting_date=None, posting_time=None, with_valuation_rate=False): """Returns stock balance quantity at given warehouse on given posting date or current date. @@ -191,4 +192,4 @@ def validate_warehouse_company(warehouse, company): def is_group_warehouse(warehouse): if frappe.db.get_value("Warehouse", warehouse, "is_group"): frappe.throw(_("Group node warehouse is not allowed to select for transactions")) - \ No newline at end of file +