From 6e4ba0fdb8efdb7e8c82e0f43ddc4766cf5cc169 Mon Sep 17 00:00:00 2001 From: Stephen Early Date: Wed, 24 Jan 2024 18:43:56 +0000 Subject: [PATCH] Don't try to print price list when there is no printer --- quicktill/managestock.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/quicktill/managestock.py b/quicktill/managestock.py index 0928039d..3aa1c76d 100644 --- a/quicktill/managestock.py +++ b/quicktill/managestock.py @@ -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)