missing semi-colon

This commit is contained in:
2026-07-02 11:01:21 +07:00
parent a8343ba940
commit 114828fca6
+4 -4
View File
@@ -80,7 +80,7 @@ frappe.router.on("change", () => {
erpnext.PointOfSale.PastOrderSummary.prototype.attach_change_info = function(doc) { erpnext.PointOfSale.PastOrderSummary.prototype.attach_change_info = function(doc) {
if (doc.change_amount == 0) { if (doc.change_amount == 0) {
return return;
} }
this.$payment_container.append(` this.$payment_container.append(`
@@ -99,7 +99,7 @@ frappe.router.on("change", () => {
const used_type_payments = this.get_used_payment_types(doc.payments); const used_type_payments = this.get_used_payment_types(doc.payments);
if (!used_type_payments.includes("Cash")) { if (!used_type_payments.includes("Cash")) {
return return;
} }
const CMD = get_command(); const CMD = get_command();
@@ -171,7 +171,7 @@ frappe.router.on("change", () => {
erpnext.PointOfSale.PastOrderSummary.prototype.print_receipt = function() { erpnext.PointOfSale.PastOrderSummary.prototype.print_receipt = function() {
if (typeof this.events?.get_device === 'function') { if (typeof this.events?.get_device === 'function') {
this.custom_print_receipt(); this.custom_print_receipt();
return return;
} }
origin_print_receipt.call(this, ...arguments); origin_print_receipt.call(this, ...arguments);
@@ -308,7 +308,7 @@ function waitForPOS(callback) {
erpnext.PointOfSale.PastOrderSummary erpnext.PointOfSale.PastOrderSummary
) { ) {
if (typeof erpnext.PointOfSale?.Controller?.prototype?.setup_printer === 'function') { if (typeof erpnext.PointOfSale?.Controller?.prototype?.setup_printer === 'function') {
return return;
} }
callback(); callback();
} else { } else {