Skip to content

Commit

Permalink
Added new part in the error log on the OnReceive (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wvven authored Nov 26, 2024
1 parent 68411b5 commit 4babdc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiscal_epos_print/static/src/js/epson_epos_print.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class EpsonEposPrint {
}

body_msg = `${_t("An error happened while sending data to the printer.\nError code: ")}${res.code || ""}` +
`${_t("\nStatus: ")}${res.status || ""}` +
` ${info || ""}\n${_t("Error Message: ")}${msgPrinter}`;
if (order) {
body_msg += `\n${_t("Order Details.\nOrder lines: {")}${order_lines_msg}` +
Expand All @@ -83,6 +84,7 @@ export class EpsonEposPrint {
return;
}


// Additional logic for handling responseCommand or receipt data
if (addInfo.responseCommand === "1138") {
const toBeSent = addInfo.responseData.slice(9, 13).join("");
Expand Down

0 comments on commit 4babdc0

Please sign in to comment.