updated view in label preview

This commit is contained in:
Quality System Admin
2025-10-27 20:25:31 +02:00
parent d142129de6
commit a960285d59
15 changed files with 1889 additions and 685 deletions

View File

@@ -1958,6 +1958,18 @@ def print_module():
flash(f"Error loading orders: {e}", 'error')
return render_template('print_module.html', orders=[])
@bp.route('/print_lost_labels')
def print_lost_labels():
"""Print lost labels module"""
try:
# Get orders data for lost labels (could be different logic than print_module)
orders_data = get_unprinted_orders_data(limit=100)
return render_template('print_lost_labels.html', orders=orders_data)
except Exception as e:
print(f"Error loading print lost labels data: {e}")
flash(f"Error loading orders: {e}", 'error')
return render_template('print_lost_labels.html', orders=[])
@bp.route('/view_orders')
def view_orders():
"""View all orders in a table format"""