updated view in label preview
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user