From 26d744522add8f201c188ff846f2f93f9c51b429 Mon Sep 17 00:00:00 2001 From: Wvven <155962747+Wvven@users.noreply.github.com> Date: Wed, 4 Dec 2024 17:09:40 +0100 Subject: [PATCH] Fixed error message (#14) --- fiscal_epos_print/static/src/js/epson_epos_print.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 5092bd4417d..03a88dd66c1 100644 --- a/fiscal_epos_print/static/src/js/epson_epos_print.js +++ b/fiscal_epos_print/static/src/js/epson_epos_print.js @@ -72,10 +72,11 @@ 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}`; + `${_t("\nPrinter Code: ")}${info || ""}\n${_t("Error Message: ")}${msgPrinter}`; if (order) { body_msg += `\n${_t("Order Details.\nOrder lines: {")}${order_lines_msg}` + - `${_t(" }\nPayment Lines: {")}${order_payment_msg}\nTechnical details: \nXML: ")}${order.fp_xml}`; + `${_t(" }\nPayment Lines: {")}${order_payment_msg}` + + `${_t(" }\nTechnical details: \nXML: ")}${order.fp_xml}`; } this.popup.add(ErrorTracebackPopup, { title: _t("Connection to the printer failed"),