From a884bd9c6a13a3bc09cc75fcc8290c67ba93a88d Mon Sep 17 00:00:00 2001 From: Manas Solanki Date: Fri, 9 Feb 2018 13:12:07 +0530 Subject: [PATCH] don't set the ordered_qty in SO on load from BIN --- erpnext/stock/get_item_details.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 6b6723331a..a7638b4169 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -472,8 +472,8 @@ def get_projected_qty(item_code, warehouse): @frappe.whitelist() def get_bin_details(item_code, warehouse): return frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse}, - ["projected_qty", "actual_qty", "ordered_qty"], as_dict=True) \ - or {"projected_qty": 0, "actual_qty": 0, "ordered_qty": 0} + ["projected_qty", "actual_qty"], as_dict=True) \ + or {"projected_qty": 0, "actual_qty": 0} @frappe.whitelist() def get_serial_no_details(item_code, warehouse, stock_qty, serial_no):