Problem printing from POS [REPOST]

Hello,

I posted yesterday about a problem with printing from the pos from all the browsers I use.
I have not changed anything on my entire pc and server since the last time it worked.

Previously I assumed that it was simply a problem on my end, still it probably is, but I cant figure out whats wrong.

I got this from the Chrome console when trying to print.

Uncaught ReferenceError: offline_pos_name is not defined
    at eval (eval at frappe.template.compile (desk.min.js:237), <anonymous>:4:3913)
    at Object.frappe.render (desk.min.js:238)
    at HTMLButtonElement.<anonymous> (<anonymous>:2040:19)
    at HTMLButtonElement.dispatch (jquery.min.js:3)
    at HTMLButtonElement.$event.dispatch (report.min.js:216)
    at HTMLButtonElement.r.handle (jquery.min.js:3)

Any ideas?

Regards

Hello,

Works fine in my version 8 test account. Can you share the GIF indicating issue?

Hi @xdelios

Can you share the version details? Did you facing this issue regularly?
I am not able to replicate the issue on my local account, can you please share some steps to replicate the issue.

Hello,

I am using the latest version for sure since I update yesterday and today morning (GMT +2 time) as well.

Simple steps.
Logging in > POS > Choosing client > Choosing product (no stock controls) > PAY > Submit > Print ( not opening print panel)

Here is the GIF

https://giphy.com/gifs/xUA7aYEPDtfLCXSNUI

I am facing this issue since yesterday morning.
The weird part is that nothing changed on my server or desktop pc so I cant understand why this would happen.

Also nothing new added on either Chrome or Firefox so I cant understand the problem.

Hi @xdelios

Is that invoice synced successfully? If yes, can you check the offline pos name is exist on the invoice by running script cur_frm.doc.offline_pos_name on the browser’s console log.

Hello @rohit_w

Yes its syncing properly
For example the last one I submitted gives me the output bellow

cur_frm.doc.offline_pos_name
"1492584160446"

Any ideas?

Hi @xdelios

Have made some changes, can you please pull the latest code and check

Hello @rohit_w ,

I updated as suggested but still the same problem.

Uncaught TypeError: Cannot read property 'length' of undefined
    at get_number_format_info (desk.min.js:865)
    at window.format_number (desk.min.js:853)
    at eval (eval at frappe.template.compile (desk.min.js:237), <anonymous>:6:89)
    at Object.frappe.render (desk.min.js:238)
    at HTMLAnchorElement.<anonymous> (<anonymous>:2079:18)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.$event.dispatch (report.min.js:216)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)

Hi @xdelios

Run bench migrate command and check