From e56f47508929627e95e234515fcf9c32e309bae7 Mon Sep 17 00:00:00 2001 From: Ale Vilar Date: Thu, 7 Nov 2024 16:42:00 -0300 Subject: [PATCH] Update release tag to v1.0.17 and improve total printing format in EscPComandos --- .github/workflows/desktop.build.yml | 4 ++-- src/common/EscPComandos.py | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/desktop.build.yml b/.github/workflows/desktop.build.yml index bd0c3bcc34..e523fb3f93 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.16 - release_name: Release v1.0.16 + tag_name: v1.0.17 + release_name: Release v1.0.17 draft: false prerelease: false diff --git a/src/common/EscPComandos.py b/src/common/EscPComandos.py index 1c6fe77ce6..8bc6787ecb 100644 --- a/src/common/EscPComandos.py +++ b/src/common/EscPComandos.py @@ -558,10 +558,7 @@ def printRemito(self, escpos: EscposIO, **kwargs): printer.ln() # Imprimir total - dsTotal = pad("TOTAL:", self.desc_cols_ext - 1, " ", "l") - importeTotal = pad(f"{round(importeTotal,2):,.2f}",self.price_cols, " ", "r") - - escpos.writelines(f'{dsTotal}{self.signo}{importeTotal}', bold=True, align='left', height=2, width=2) + escpos.writelines(f'TOTAL: {self.signo}{round(importeTotal,2):,.2f}', bold=True, align='center', height=2, width=2, double_height=True, double_width=True) printer.ln(); # Imprimir pagos "Simple"