Merge pull request #4434 from nabinhait/whitelist_fix
[fix] get_incoming_rate function whitelisted
This commit is contained in:
commit
c8a2b94200
@ -88,6 +88,7 @@ def update_bin(args, allow_negative_stock=False, via_landed_cost_voucher=False):
|
|||||||
else:
|
else:
|
||||||
frappe.msgprint(_("Item {0} ignored since it is not a stock item").format(args.get("item_code")))
|
frappe.msgprint(_("Item {0} ignored since it is not a stock item").format(args.get("item_code")))
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
def get_incoming_rate(args):
|
def get_incoming_rate(args):
|
||||||
"""Get Incoming Rate based on valuation method"""
|
"""Get Incoming Rate based on valuation method"""
|
||||||
from erpnext.stock.stock_ledger import get_previous_sle
|
from erpnext.stock.stock_ledger import get_previous_sle
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user