fix: POS print receipt
diff --git a/erpnext/selling/page/point_of_sale/pos_past_order_summary.js b/erpnext/selling/page/point_of_sale/pos_past_order_summary.js
index 39f54fa..5ac32b6 100644
--- a/erpnext/selling/page/point_of_sale/pos_past_order_summary.js
+++ b/erpnext/selling/page/point_of_sale/pos_past_order_summary.js
@@ -201,9 +201,13 @@
 
 		this.$summary_container.on('click', '.print-btn', () => {
 			const frm = this.events.get_frm();
-			frm.doc = this.doc;
-			frm.print_preview.lang_code = frm.doc.language;
-			frm.print_preview.printit(true);
+			frappe.utils.print(
+				frm.doctype,
+				frm.docname,
+				frm.pos_print_format,
+				frm.doc.letter_head,
+				frm.doc.language || frappe.boot.lang
+			)
 		});
 	}