From 4babdc09c902607d8b47526c2162eaf46d8699a5 Mon Sep 17 00:00:00 2001 From: Wvven <155962747+Wvven@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:54:53 +0100 Subject: [PATCH] Added new part in the error log on the OnReceive (#13) --- fiscal_epos_print/static/src/js/epson_epos_print.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fiscal_epos_print/static/src/js/epson_epos_print.js b/fiscal_epos_print/static/src/js/epson_epos_print.js index ba120fa0f0a1..5092bd4417d6 100644 --- a/fiscal_epos_print/static/src/js/epson_epos_print.js +++ b/fiscal_epos_print/static/src/js/epson_epos_print.js @@ -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}` + @@ -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("");