[fix] get_incoming_rate function whitelisted

This commit is contained in:
Nabin Hait 2015-12-07 10:44:56 +05:30
parent c43a11a313
commit 5eefff13a1

View File

@ -88,6 +88,7 @@ def update_bin(args, allow_negative_stock=False, via_landed_cost_voucher=False):
else:
frappe.msgprint(_("Item {0} ignored since it is not a stock item").format(args.get("item_code")))
@frappe.whitelist()
def get_incoming_rate(args):
"""Get Incoming Rate based on valuation method"""
from erpnext.stock.stock_ledger import get_previous_sle