minor fix

This commit is contained in:
Wilson Gomez 2022-11-09 16:55:31 -05:00
parent 4f19a7ed08
commit e4663c273f
1 changed files with 5 additions and 4 deletions

View File

@ -251,7 +251,7 @@ class Receipt(object):
def _print_sale_verification(self, sale):
self.print_header_sale_verification(sale)
self.print_sale_lines(sale)
self.print_totals(sale)
self.print_totals(sale, short=None, doc='sale_verification')
self._printer.ln(3)
self._printer.cut()
self._printer.ln(2)
@ -495,7 +495,7 @@ class Receipt(object):
if line['discount'] and Decimal(line['discount']) and self._show_discount:
self.print_split(initial, discount)
def print_totals(self, sale, short=None):
def print_totals(self, sale, short=None, doc=None):
untaxed_amount = sale['untaxed_amount']
total_amount = sale['total_amount']
self.print_split('', '----------------')
@ -532,8 +532,9 @@ class Receipt(object):
change = sale.get('residual_amount', 0)
else:
msg_residual = 'Cambio:'
self.print_split(msg_residual, money(change))
self.print_enter()
if doc != 'sale_verification':
self.print_split(msg_residual, money(change))
self.print_enter()
if not short:
order = sale.get('order')
if order: