Skip to content

Commit

Permalink
Update release tag to v1.0.17 and improve total printing format in Es…
Browse files Browse the repository at this point in the history
…cPComandos
  • Loading branch information
alevilar committed Nov 7, 2024
1 parent dccf9d7 commit e56f475
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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.16
release_name: Release v1.0.16
tag_name: v1.0.17
release_name: Release v1.0.17
draft: false
prerelease: false

Expand Down
5 changes: 1 addition & 4 deletions src/common/EscPComandos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e56f475

Please sign in to comment.