示例#1
0
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)
示例#2
0
def invoice():

    invoices = Invoice.select()
    return render_template("invoiced.html", invoices=invoices)