From 5b72926ce99cf97cc32e2b96c080ec0d2cb5661c Mon Sep 17 00:00:00 2001 From: Ale Vilar Date: Thu, 7 Nov 2024 17:49:03 -0300 Subject: [PATCH] Update release tag to v1.0.18 and adjust text alignment in EscPComandos --- .github/workflows/desktop.build.yml | 4 ++-- src/common/EscPComandos.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/desktop.build.yml b/.github/workflows/desktop.build.yml index e523fb3f93..cea5c285ae 100644 --- a/.github/workflows/desktop.build.yml +++ b/.github/workflows/desktop.build.yml @@ -135,8 +135,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v1.0.17 - release_name: Release v1.0.17 + tag_name: v1.0.18 + release_name: Release v1.0.18 draft: false prerelease: false diff --git a/src/common/EscPComandos.py b/src/common/EscPComandos.py index 8bc6787ecb..f6b01475b4 100644 --- a/src/common/EscPComandos.py +++ b/src/common/EscPComandos.py @@ -685,6 +685,8 @@ def print_plato(plato): printer.text("\n") printer.set(font='b', bold=False, height=2, width=2, align='left', double_height=False, double_width=False) printer.text(f" OBS: {plato['observacion']}\n") + + printer.text("\n") if 'observacion' in comanda: printer.set(font='a', bold=True, height=2, width=2, align='center', double_height=True, double_width=True) @@ -693,14 +695,14 @@ def print_plato(plato): printer.text("\n\n") if 'entradas' in comanda: - printer.set(font='a', bold=True, height=2, width=2, align='left', double_height=True, double_width=True) + printer.set(font='a', bold=True, height=2, width=2, align='center', double_height=True, double_width=True) printer.text(u"** ** ENTRADA ** **\n\n") for entrada in comanda['entradas']: print_plato(entrada) printer.text("\n\n") if 'platos' in comanda: - printer.set(font='a', bold=True, height=2, width=2, align='left', double_height=True, double_width=True) + printer.set(font='a', bold=True, height=2, width=2, align='center', double_height=True, double_width=True) printer.text(u"----- PRINCIPAL -----\n\n") for plato in comanda['platos']: print_plato(plato)