is there a way to print slip direct after submitting POS Slip
after clicking “Complete Order”, I want to print Slip to printer without going next screen
is there a way to print slip direct after submitting POS Slip
after clicking “Complete Order”, I want to print Slip to printer without going next screen
I’m not sure, but you may need to customize the POS flow and set it according to the requirements and first test it locally.
@santhida
add this line in your
apps/erpnext/erpnext/selling/page/point_of_sale/pos_controller.js
this.order_summary.print_receipt();
@santhida
if you want to create new invoice after print without click on New Order
replace your code with this one
submit_invoice: () => {
this.frm.save('Submit')
.then((r) => {
this.toggle_components(false);
this.order_summary.toggle_component(true);
this.order_summary.load_summary_of(this.frm.doc, true);
this.order_summary.print_receipt();
frappe.run_serially([
() => frappe.dom.freeze(),
() => this.make_new_invoice(),
() => this.item_selector.toggle_component(true),
() => this.order_summary.toggle_component(false),
() => frappe.dom.unfreeze(),
]);
});
}
we will check
thanks