stock_values_on append function on string
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py
index c89fc10..76631fa 100644
--- a/erpnext/stock/utils.py
+++ b/erpnext/stock/utils.py
@@ -56,7 +56,7 @@
 
 	if item_code:
 		values.append(item_code)
-		condition.append(" AND item_code = %s")
+		condition += " AND item_code = %s"
 
 	stock_ledger_entries = frappe.db.sql("""
 		SELECT item_code, stock_value, name, warehouse