Maybe remember the rotation and menu name

This commit is contained in:
Christoffer Viken 2017-03-22 17:13:15 +00:00
parent 6d205fcf18
commit 8e47a1848b
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import conf
class PrintLabelMenu(Menu): class PrintLabelMenu(Menu):
def __init__(self): def __init__(self):
Menu.__init__(self, 'Edit user', uses_db=True) Menu.__init__(self, 'Print bar code', uses_db=True)
self.help_text = ''' self.help_text = '''
Prints out a product bar code on the printer Prints out a product bar code on the printer
@ -16,5 +16,5 @@ Put it up somewhere in the vicinity.
self.print_header() self.print_header()
product = self.input_product('Prodct> ') product = self.input_product('Prodct> ')
print_bar_code(product.bar_code, product.name, barcode_type="ean13", rotate=False, printer_type="QL-700", print_bar_code(product.bar_code, product.name, barcode_type="ean13", rotate=conf.label_rotate,
label_type=conf.label_type) printer_type="QL-700", label_type=conf.label_type)