I’m getting the error below when accessing the POS module
Traceback (most recent call last):
File "/home/rockers/frappe-bench/apps/frappe/frappe/app.py", line 61, in application
response = frappe.handler.handle()
File "/home/rockers/frappe-bench/apps/frappe/frappe/handler.py", line 21, in handle
data = execute_cmd(cmd)
File "/home/rockers/frappe-bench/apps/frappe/frappe/handler.py", line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/rockers/frappe-bench/apps/frappe/frappe/__init__.py", line 1026, in call
return fn(*args, **newargs)
File "/home/rockers/frappe-bench/apps/pos_bahrain/pos_bahrain/api/item.py", line 40, in get_more_pos_data
'exchange_rates': get_exchange_rates(),
File "/home/rockers/frappe-bench/apps/pos_bahrain/pos_bahrain/api/item.py", line 101, in get_exchange_rates
as_dict=1
File "/home/rockers/frappe-bench/apps/frappe/frappe/database.py", line 210, in sql
self._cursor.execute(query)
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/cursors.py", line 170, in execute
result = self._query(query)
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/cursors.py", line 328, in _query
conn.query(q)
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 517, in query
self._affected_rows = self._read_query_result(unbuffered=unbuffered)
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 732, in _read_query_result
result.read()
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 1075, in read
first_packet = self.connection._read_packet()
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/connections.py", line 684, in _read_packet
packet.check_error()
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/protocol.py", line 220, in check_error
err.raise_mysql_exception(self._data)
File "/home/rockers/frappe-bench/env/lib/python2.7/site-packages/pymysql/err.py", line 109, in raise_mysql_exception
raise errorclass(errno, errval)
InternalError: (1054, u"Unknown column 'alt_currency' in 'field list'")
Ideally, you don’t need to manually add any columns. It should have been created when you installed pos_bahrain. Although not required, you should probably run the command below to recreate any missing columns
Hi @fkardame. I’ve installed the app and everything is working fine now. How do I get the selected batch number/id onto the invoice/receipt? Do I use a JavaScript function? Which one?
Hi @fkardame. Please help me with this. I know the data {batch_no} is there somewhere in the browser, after one has selected it from the pop-up batch number select form but how do I get it onto the print format?
Thank you for all your help. I’ve been pulling out my hair for a while now, almost bald now . I’ve opened a feature request on the github page, hopefully the ERPNext team will have time to look at this and help. https://github.com/frappe/erpnext/issues/16953