Getting POS Print Error

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 879, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/www/print.py”, line 171, in get_html_and_style
no_letterhead=no_letterhead, trigger_print=trigger_print),
File “/home/frappe/frappe-bench/apps/frappe/frappe/www/print.py”, line 142, in get_html
html = template.render(args, filters={“len”: len})
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 989, in render
return self.environment.handle_exception(exc_info, True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/jinja2/environment.py”, line 754, in handle_exception
reraise(exc_type, exc_value, tb)
File "

Hello,

I tried replicating this issue by creating POS Invoice and printing it. It worked fine for me. Can you please provide steps and screenshot to elaborate your query?

Hi @umair

Thanks for your reply.

First I customized the print format for POS Invoice.
Creating and printing the POS is working properly.
When we go for print from the sale invoice it getting the error.

@rohit_w can you please help?

Hi @nagarajan,

Can you share your code

Thanks

Hi @rohit_w

Sorry just now I deleted the whole and rebuilding a new one.

Hi @nagarajan,

OK, You can refer existing print format POS Invoice for form view of sales invoice and Point of Sale for offline point of sale

Thanks

1 Like

@rohit_w Same error occurs for me

@vivin_joseph

Can you please share some more information about an error, which type(JS/Server) of print format are you using? Are you using offline POS?