From 481977d368c7e3ff350eb3efb2c9376752286f3b Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 23 Aug 2019 11:49:26 +0530 Subject: [PATCH] fix: Actual qty in the sales order showing different on the sales order form and the standard sales order report --- erpnext/controllers/selling_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index f16d40c4ea8..e866472dbb3 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -31,7 +31,7 @@ class SellingController(StockController): def onload(self): super(SellingController, self).onload() - if self.doctype in ("Sales Order", "Delivery Note", "Sales Invoice"): + if self.docstatus==0 and self.doctype in ("Sales Order", "Delivery Note", "Sales Invoice"): for item in self.get("items"): item.update(get_bin_details(item.item_code, item.warehouse))