mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: loading print receipt only at order complete (#45627)
(cherry picked from commit 5a1851dfe3)
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -357,8 +357,10 @@ erpnext.PointOfSale.PastOrderSummary = class {
|
||||
|
||||
this.add_summary_btns(condition_btns_map);
|
||||
|
||||
if (after_submission) {
|
||||
this.print_receipt_on_order_complete();
|
||||
}
|
||||
}
|
||||
|
||||
attach_document_info(doc) {
|
||||
frappe.db.get_value("Customer", this.doc.customer, "email_id").then(({ message }) => {
|
||||
|
||||
Reference in New Issue
Block a user