POS Pay Button Not Working!

,

Hi @rohit_w ,

I had some errors after adding Mode of Payments in v10.0.4 like duplicates in Sales Invoice posted from POS and in Sales Payments Summary an error so I upgraded again to latest v10.0.18 but now the POS Pay button in Online POS does not respond to mouse click.

Offline POS is not better either as I had earlier pointed to this in POS Duplicated sales invoice under the same offline pos name

We used Offline POS today but it just is not syncing all transactions. We actually lost quite a good number of Sales made. This is really strange behaviour. What could be wrong?

The only log showing an error is
tail logs/web.error.log

if frappe.local.is_ajax or ‘application/json’ in frappe.get_request_header(‘Accept’):
TypeError: argument of type ‘NoneType’ is not iterable

Any assistance would be highly appreciated here.

Thanks

Did an update to the latest version and now we have the same issue with the Online Mode. Offline Mode PAY is working. Any suggestion in why this is happening
Here is our version

ERPNext: v10.0.18 (master)
Frappe Framework: v10.0.19 (master)

Here is the web.error.log

[2018-02-02 15:31:59 +0000] [4011] [ERROR] Error handling request /api/method/frappe.async.can_subscribe_doc?sid=a7cab60e5175cce1a4854fe1a688cf5df794202ed4544238c2960bde&doctype=Sales%20Invoice&docname=New%20Sales%20Invoice%201
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/gunicorn/workers/sync.py”, line 135, in handle
self.handle_request(listener, req, client, addr)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/gunicorn/workers/sync.py”, line 176, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py”, line 228, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py”, line 301, in application
return f(*args[:-2] + (request,))(*args[-2:])
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 88, in application
response = handle_exception(e)
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 143, in handle_exception
if frappe.local.is_ajax or ‘application/json’ in frappe.get_request_header(‘Accept’):
TypeError: argument of type ‘NoneType’ is not iterable

Malo

cc: @nabinhait @rohit_w

Pull request for POS Pay btn not working has been created to hotfix branch.
https://github.com/frappe/erpnext/pull/12739

@sione @mwai
Thanks for reporting an issue we have identified and fixed the issue and soon we’ll release it

Thanks

Just did a bench update and now POS is back to normal.

Malo Aupito