fix: POS print receipt
This commit is contained in:
parent
f29c075bc3
commit
b6ce868199
@ -201,9 +201,13 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
|||||||
|
|
||||||
this.$summary_container.on('click', '.print-btn', () => {
|
this.$summary_container.on('click', '.print-btn', () => {
|
||||||
const frm = this.events.get_frm();
|
const frm = this.events.get_frm();
|
||||||
frm.doc = this.doc;
|
frappe.utils.print(
|
||||||
frm.print_preview.lang_code = frm.doc.language;
|
frm.doctype,
|
||||||
frm.print_preview.printit(true);
|
frm.docname,
|
||||||
|
frm.pos_print_format,
|
||||||
|
frm.doc.letter_head,
|
||||||
|
frm.doc.language || frappe.boot.lang
|
||||||
|
)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user