From 6cf5c02fa404e57c7de025e62101e95f4a61a203 Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 30 Oct 2025 15:31:23 -0300 Subject: [PATCH] Fixes --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 77d28da..c2fd399 100644 --- a/index.js +++ b/index.js @@ -51,6 +51,10 @@ function textTripleSize() { return "\x1D\x21\x22"; // GS ! 34 → triple (si la impresora lo soporta) } +function textQuadSize() { + return "\x1D\x21\x33"; // GS ! 34 → triple (si la impresora lo soporta) +} + function textFifthSize() { return "\x1D\x21\x44"; // GS ! 34 → triple (si la impresora lo soporta) } @@ -335,8 +339,8 @@ async function ticketDPSTockGondola( // Encabezado ticket += init(); ticket += left(); - ticket += textDoubleWidth() + nombre + textNormal() + line(1); - ticket += textFifthSize() + boldOn() + "$" + top_price + textNormal() + line(); + ticket += textDoubleSize() + nombre + textNormal() + line(1); + ticket += textQuadSize() + boldOn() + "$" + top_price + textNormal() + line(); ticket += textTripleSize() + "x unidad" + textNormal() + boldOff() + line(); if (off) {