From 6545b1bb9b7e70e15961569cce896c510421d916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Gil=20Sorribes?= Date: Fri, 14 Aug 2020 16:08:58 +0200 Subject: [PATCH] fixup! Refactoed esc/pos template --- pos_jsprintmanager/static/src/js/screen.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pos_jsprintmanager/static/src/js/screen.js b/pos_jsprintmanager/static/src/js/screen.js index 12aa1554..e45d8256 100644 --- a/pos_jsprintmanager/static/src/js/screen.js +++ b/pos_jsprintmanager/static/src/js/screen.js @@ -44,14 +44,14 @@ odoo.define("pos_jsprintmanager.screen", function (require) { } // Variables definition - const this.esc = '\x1B'; //ESC byte in hex notation - const this.line_feed = '\x0A'; //LF byte in hex notation - - const this.page_width = 48; - const this.this.qty_width = 12; - const this.price_width = 12; - const this.totals_width = 24; - const this.name_width = this.page_width - this.this.qty_width - this.price_width; + this.esc = '\x1B'; //ESC byte in hex notation + this.line_feed = '\x0A'; //LF byte in hex notation + + this.page_width = 48; + this.qty_width = 12; + this.price_width = 12; + this.totals_width = 24; + this.name_width = this.page_width - this.qty_width - this.price_width; }, center_align_string: function(s, width) {