missing semi-colon
This commit is contained in:
@@ -80,7 +80,7 @@ frappe.router.on("change", () => {
|
||||
|
||||
erpnext.PointOfSale.PastOrderSummary.prototype.attach_change_info = function(doc) {
|
||||
if (doc.change_amount == 0) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
this.$payment_container.append(`
|
||||
@@ -99,7 +99,7 @@ frappe.router.on("change", () => {
|
||||
const used_type_payments = this.get_used_payment_types(doc.payments);
|
||||
|
||||
if (!used_type_payments.includes("Cash")) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
const CMD = get_command();
|
||||
@@ -171,7 +171,7 @@ frappe.router.on("change", () => {
|
||||
erpnext.PointOfSale.PastOrderSummary.prototype.print_receipt = function() {
|
||||
if (typeof this.events?.get_device === 'function') {
|
||||
this.custom_print_receipt();
|
||||
return
|
||||
return;
|
||||
}
|
||||
|
||||
origin_print_receipt.call(this, ...arguments);
|
||||
@@ -308,7 +308,7 @@ function waitForPOS(callback) {
|
||||
erpnext.PointOfSale.PastOrderSummary
|
||||
) {
|
||||
if (typeof erpnext.PointOfSale?.Controller?.prototype?.setup_printer === 'function') {
|
||||
return
|
||||
return;
|
||||
}
|
||||
callback();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user