refactor: simplify the way SLEs are submitted

This commit is contained in:
Ankush Menat
2021-12-03 12:18:59 +05:30
committed by Ankush Menat
parent 97060c45e9
commit cef84c25a7
3 changed files with 40 additions and 33 deletions

View File

@@ -203,6 +203,7 @@ def get_or_make_bin(item_code: str , warehouse: str) -> str:
return bin_record
def update_bin(args, allow_negative_stock=False, via_landed_cost_voucher=False):
"""WARNING: This function is deprecated. Inline this function instead of using it."""
from erpnext.stock.doctype.bin.bin import update_stock
is_stock_item = frappe.get_cached_value('Item', args.get("item_code"), 'is_stock_item')
if is_stock_item: