[fix] [minor] fixes in item merging

This commit is contained in:
Nabin Hait 2013-08-22 10:48:41 +05:30
parent 77343391f5
commit 328fc095a0

View File

@ -272,4 +272,4 @@ class DocType(DocListController):
from stock.stock_ledger import update_entries_after
for wh in webnotes.conn.sql("""select warehouse from `tabBin`
where item_code=%s""", newdn):
update_entries_after({"item_code": newdn, "warehouse": wh})
update_entries_after({"item_code": newdn, "warehouse": wh[0]})