Skip to content

Commit

Permalink
fix: add missing 'ordered_qty' to get_bin_details
Browse files Browse the repository at this point in the history
  • Loading branch information
dj12djdjs committed Dec 31, 2022
1 parent bb4725e commit 8d62cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -1175,10 +1175,10 @@ def get_bin_details(item_code, warehouse, company=None):
bin_details = frappe.db.get_value(
"Bin",
{"item_code": item_code, "warehouse": warehouse},
["projected_qty", "actual_qty", "reserved_qty"],
["projected_qty", "actual_qty", "reserved_qty", "ordered_qty"],
as_dict=True,
cache=True,
) or {"projected_qty": 0, "actual_qty": 0, "reserved_qty": 0}
) or {"projected_qty": 0, "actual_qty": 0, "reserved_qty": 0, "ordered_qty": 0}
if company:
bin_details["company_total_stock"] = get_company_total_stock(item_code, company)
return bin_details
Expand Down

0 comments on commit 8d62cdf

Please sign in to comment.