Skip to content

Commit

Permalink
Don't try to print price list when there is no printer
Browse files Browse the repository at this point in the history
  • Loading branch information
sde1000 committed Jan 24, 2024
1 parent 0a01a80 commit 6e4ba0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quicktill/managestock.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ def maintenance():

@user.permission_required("print-price-list", "Print a price list")
def print_pricelist():
if not tillconfig.receipt_printer:
ui.infopopup(["This till does not have a printer."], title="Error")
return
department.menu(_print_pricelist_options, "Print Price List",
allowall=True)

Expand Down

0 comments on commit 6e4ba0f

Please sign in to comment.