def select_invoice(): if Security.is_login(SK): return render_template('invoice/select_invoice.html', title='Select Invoice', invoices=Invoice.get_ten_invoices(), boxes_sold=Invoice.number_of_boxes_sold()) return redirect(url_for('login', callback=stack()[0][3]))