Skip to content

Commit

Permalink
Update release tag to v1.0.18 and adjust text alignment in EscPComandos
Browse files Browse the repository at this point in the history
  • Loading branch information
alevilar committed Nov 7, 2024
1 parent e56f475 commit 5b72926
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/desktop.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 4 additions & 2 deletions src/common/EscPComandos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 5b72926

Please sign in to comment.