[minor] if packed item warehouse not found then set the parent item warehouse to packed items

This commit is contained in:
mbauskar 2017-04-12 16:12:10 +05:30 committed by Nabin Hait
parent b5608f9b14
commit e471b02172

View File

@ -203,7 +203,7 @@ class SellingController(StockController):
if p.parent_detail_docname == d.name and p.parent_item == d.item_code: 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 # the packing details table's qty is already multiplied with parent's qty
il.append(frappe._dict({ il.append(frappe._dict({
'warehouse': p.warehouse, 'warehouse': p.warehouse or d.warehouse,
'item_code': p.item_code, 'item_code': p.item_code,
'qty': flt(p.qty), 'qty': flt(p.qty),
'uom': p.uom, 'uom': p.uom,