Merge branch 'master' of github.com:webnotes/erpnext into perpetual

This commit is contained in:
Nabin Hait
2013-08-22 14:42:20 +05:30
9 changed files with 29 additions and 24 deletions

View File

@@ -270,4 +270,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]})