fix: get batch_no. for item automatically (#34473)

* fix: default pos conversion factor set to 1

* fix:get-batch-no-of-item-automatically
diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py
index 657623d..62b3105 100644
--- a/erpnext/selling/page/point_of_sale/point_of_sale.py
+++ b/erpnext/selling/page/point_of_sale/point_of_sale.py
@@ -63,8 +63,9 @@
 		filters={
 			"price_list": price_list,
 			"item_code": item_code,
+			"batch_no": batch_no,
 		},
-		fields=["uom", "stock_uom", "currency", "price_list_rate"],
+		fields=["uom", "stock_uom", "currency", "price_list_rate", "batch_no"],
 	)
 
 	def __sort(p):
@@ -167,7 +168,7 @@
 
 		item_price = frappe.get_all(
 			"Item Price",
-			fields=["price_list_rate", "currency", "uom"],
+			fields=["price_list_rate", "currency", "uom", "batch_no"],
 			filters={
 				"price_list": price_list,
 				"item_code": item.item_code,
@@ -190,9 +191,9 @@
 					"price_list_rate": price.get("price_list_rate"),
 					"currency": price.get("currency"),
 					"uom": price.uom or item.uom,
+					"batch_no": price.batch_no,
 				}
 			)
-
 	return {"items": result}