POS barcode error

App Versions

{
	"erpnext": "14.20.3",
	"frappe": "14.31.0",
	"hrms": "14.1.1"
}

Route

point-of-sale

Traceback

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 56, in search_by_term
    price = frappe.get_list(
  File "apps/frappe/frappe/__init__.py", line 1896, in get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(*args, **kwargs)
  File "apps/frappe/frappe/model/db_query.py", line 202, in execute
    result = self.build_and_run()
  File "apps/frappe/frappe/model/db_query.py", line 242, in build_and_run
    return frappe.db.sql(
  File "apps/frappe/frappe/database/database.py", line 219, in sql
    self._cursor.execute(query, values)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 158, in execute
    result = self._query(query)
  File "env/lib/python3.10/site-packages/pymysql/cursors.py", line 325, in _query
    conn.query(q)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 549, in query
    self._affected_rows = self._read_query_result(unbuffered=unbuffered)
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 779, in _read_query_result
    result.read()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 1157, in read
    first_packet = self.connection._read_packet()
  File "env/lib/python3.10/site-packages/pymysql/connections.py", line 729, in _read_packet
    packet.raise_for_error()
  File "env/lib/python3.10/site-packages/pymysql/protocol.py", line 221, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "env/lib/python3.10/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (1054, "Unknown column 'stock_uom' in 'field list'")

Request Data

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

Response Data

{
	"exception": "pymysql.err.OperationalError: (1054, \"Unknown column 'stock_uom' in 'field list'\")"
}

how can i fix this error ?

Hi @Simon_Muturi1,

It’s working properly in the latest version 14 so please upgrade your version and then check it.

I hope this helps.

Thank You!

Hi @Simon_Muturi1,

Issue is already solved. so please check it.

Thank You!