fix: loading print receipt only at order complete (backport #45627) (#45628)

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:
mergify[bot]
2025-01-31 11:19:23 +05:30
committed by GitHub
parent 04c1fc71dd
commit 72868eee04

View File

@@ -357,8 +357,10 @@ erpnext.PointOfSale.PastOrderSummary = class {
this.add_summary_btns(condition_btns_map); this.add_summary_btns(condition_btns_map);
if (after_submission) {
this.print_receipt_on_order_complete(); this.print_receipt_on_order_complete();
} }
}
attach_document_info(doc) { attach_document_info(doc) {
frappe.db.get_value("Customer", this.doc.customer, "email_id").then(({ message }) => { frappe.db.get_value("Customer", this.doc.customer, "email_id").then(({ message }) => {