Update sales_invoice.py
[fixes] pulling available qty on selection of item in case of pos
This commit is contained in:
parent
df33532280
commit
f6911fb51c
@ -351,7 +351,7 @@ class DocType(SellingController):
|
||||
|
||||
if ret.get("warehouse"):
|
||||
ret["actual_qty"] = flt(webnotes.conn.get_value("Bin",
|
||||
{"item_code": args.get("item_code"), "warehouse": args.get("warehouse")},
|
||||
{"item_code": args.get("item_code"), "warehouse": ret.get("warehouse")},
|
||||
"actual_qty"))
|
||||
return ret
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user