Entering barcode in the POS app gives an error

The problem:

This problem occurs with variant items only.

App Versions

	"erpnext": "14.23.0",
	"frappe": "14.34.0"




Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 66, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/api.py", line 54, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 45, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 83, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1607, in call
    return fn(*args, **newargs)
  File "apps/erpnext/erpnext/selling/page/point_of_sale/point_of_sale.py", line 96, in get_items
    result = search_by_term(search_term, warehouse, price_list) or []
  File "apps/erpnext/erpnext/selling/page/point_of_sale/point_of_sale.py", line 52, in search_by_term
    item_stock_qty = item_stock_qty // item.get("conversion_factor")
TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'

Request Data

	"type": "POST",
	"args": {
		"start": 0,
		"page_length": 40,
		"price_list": "Standard Selling",
		"item_group": "All Item Groups",
		"search_term": "9000002",
		"pos_profile": "Shopping Centre"
	"freeze": true,
	"headers": {},
	"error_handlers": {},
	"url": "/api/method/erpnext.selling.page.point_of_sale.point_of_sale.get_items"

Response Data

	"exception": "TypeError: unsupported operand type(s) for //: 'int' and 'NoneType'"

1 Like

Same error i also facing

if you found any solutions please share with us