@max_morais_dmm
thank you that worked fine for me
However, i am having this issue…
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 939, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/erpnext/erpnext/selling/page/point_of_sale/point_of_sale.py”, line 99, in submit_invoice
doc.submit()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 831, in submit
self._submit()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 820, in _submit
self.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 256, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 279, in _save
self.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 245, in insert
self.run_post_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 890, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 755, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1024, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1009, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/printnode_integration/printnode_integration/events.py”, line 34, in on_submit
print_via_printnode( doc, “Submit” )
File “/home/frappe/frappe-bench/apps/printnode_integration/printnode_integration/events.py”, line 24, in print_via_printnode
api.print_via_printnode(d.name, doctype=doc.doctype, docname=doc.name)
File “/home/frappe/frappe-bench/apps/printnode_integration/printnode_integration/api.py”, line 110, in print_via_printnode
action.is_raw_text
File “/home/frappe/frappe-bench/apps/printnode_integration/printnode_integration/api.py”, line 67, in get_print_content
printer.receipt(content)
File “/home/frappe/frappe-bench/env/src/pyxmlescpos/xmlescpos/escpos.py”, line 721, in receipt
raise e
ParseError: junk after document element: line 16, column 0