mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-06 12:04:00 +00:00
Update sales_invoice.py
[fixes] pulling available qty on selection of item in case of pos
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user