fix: POS print receipt

This commit is contained in:
prssanna 2021-03-17 19:23:50 +05:30
parent f29c075bc3
commit b6ce868199

View File

@ -201,9 +201,13 @@ erpnext.PointOfSale.PastOrderSummary = class {
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
)
});
}