minor fix

This commit is contained in:
Wilson Gomez 2023-08-22 11:55:14 -05:00
parent 4a6c63fadd
commit da288790a8
1 changed files with 5 additions and 4 deletions

View File

@ -263,7 +263,7 @@ class Receipt(object):
self.print_qrcode(sale['qr_code'])
except:
pass
self.print_footer(open_box)
self.print_footer(open_box, type_doc)
else:
self._printer.cut()
# self.print_extra_info(sale)
@ -796,12 +796,13 @@ class Receipt(object):
def print_col(self, x, l):
self._printer.text(x[:l] + (l - len(x)) * ' ')
def print_footer(self, open_box=False):
def print_footer(self, open_box=False, type_doc=None):
if self._footer:
self._printer.text(self._footer)
self.print_enter()
self._printer.text('SOFTWARE TRYTON - www.presik.com')
self.print_enter()
if type_doc == 'invoice':
self._printer.text('SOFTWARE TRYTON - www.presik.com')
self.print_enter()
self._printer.cut()
if open_box:
self._printer.cashdraw(2)