From e471b02172040d84f8c7526ba0d8b71b8dddcc5d Mon Sep 17 00:00:00 2001 From: mbauskar Date: Wed, 12 Apr 2017 16:12:10 +0530 Subject: [PATCH] [minor] if packed item warehouse not found then set the parent item warehouse to packed items --- 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 c235d3435a3..af51f70147f 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -203,7 +203,7 @@ class SellingController(StockController): if p.parent_detail_docname == d.name and p.parent_item == d.item_code: # the packing details table's qty is already multiplied with parent's qty il.append(frappe._dict({ - 'warehouse': p.warehouse, + 'warehouse': p.warehouse or d.warehouse, 'item_code': p.item_code, 'qty': flt(p.qty), 'uom': p.uom,