POS Print function fails from time to time

Hi,

The POS Print function fails from time to time. Whenever this happens, the receipt cannot be printed for the customer from the POS screen. As you can imagine, this is quite a serious issue. Please find the JS Trace below:

Uncaught ReferenceError: offline_pos_name is not defined
    at eval (eval at frappe.template.compile (desk.min.js:207), <anonymous>:4:3602)
    at Object.frappe.render (desk.min.js:208)
    at HTMLAnchorElement.<anonymous> (<anonymous>:1508:18)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.$event.dispatch (report.min.js:208)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)
desk#pos:4 Uncaught ReferenceError: offline_pos_name is not defined
    at eval (eval at frappe.template.compile (desk.min.js:207), <anonymous>:4:3602)
    at Object.frappe.render (desk.min.js:208)
    at HTMLAnchorElement.<anonymous> (<anonymous>:1508:18)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.$event.dispatch (report.min.js:208)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)
VM967:4 Uncaught ReferenceError: offline_pos_name is not defined
    at eval (eval at frappe.template.compile (desk.min.js:207), <anonymous>:4:3602)
    at Object.frappe.render (desk.min.js:208)
    at HTMLAnchorElement.<anonymous> (<anonymous>:1508:18)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.$event.dispatch (report.min.js:208)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)
(anonymous) @ VM967:4
frappe.render @ desk.min.js:208
(anonymous) @ VM937:1508
dispatch @ jquery.min.js:3
$event.dispatch @ report.min.js:208
r.handle @ jquery.min.js:3
VM967:4 Uncaught ReferenceError: offline_pos_name is not defined
    at eval (eval at frappe.template.compile (desk.min.js:207), <anonymous>:4:3602)
    at Object.frappe.render (desk.min.js:208)
    at HTMLButtonElement.<anonymous> (<anonymous>:1485:19)
    at HTMLButtonElement.dispatch (jquery.min.js:3)
    at HTMLButtonElement.$event.dispatch (report.min.js:208)
    at HTMLButtonElement.r.handle (jquery.min.js:3)

Any custom changes in the pos print format?

Hi @rohit_w

There are no custom changes. As I mentioned in the post, it happens from time to time and on different accounts. Once in a while, the print screen also comes up blank!