def index(): bootstrap.initialize() user = User.select().where(User.email == "*****@*****.**").get() invoice = Invoice.select().where(Invoice.user_email == user.email).get() total = invoice.design_fee + invoice.hosting_fee + invoice.developer_fee + invoice.domain_fee return render_template("invoice.html", user=user, invoice=invoice, total=total)
def invoice(): invoices = Invoice.select() return render_template("invoiced.html", invoices=invoices)