Update sales_invoice.py

[fixes] pulling available qty on selection of item in case of pos
This commit is contained in:
Nabin Hait 2013-05-29 11:06:17 +05:30
parent df33532280
commit f6911fb51c

View File

@ -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