Maybe remember the rotation and menu name
This commit is contained in:
parent
6d205fcf18
commit
8e47a1848b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue