[Minor][Bug] Fix syntax error (#11633)

diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index f530137..621e9a7 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -1149,7 +1149,7 @@
 			}
 			if (item.warehouse) filters["warehouse"] = item.warehouse;
 
-			return s
+			return {
 				query : "erpnext.controllers.queries.get_batch_no",
 				filters: filters
 			}