Exemple #1
0
def draft_order(id):
    order = Order.get_by_id(id)
    order.status = OrderStatusKinds.draft.value
    order.save()
    return render_template("order/detail.html", order=order)
Exemple #2
0
def send_order(id):
    order = Order.get_by_id(id)
    order.status = OrderStatusKinds.shipped.value
    order.ship_status = ShipStatusKinds.delivered.value
    order.save()
    return render_template("order/detail.html", order=order)
Exemple #3
0
def draft_order(id):
    order = Order.get_by_id(id)
    order.draft()
    return render_template("order/detail.html", order=order)
Exemple #4
0
def order_detail(id):
    order = Order.get_by_id(id)
    return render_template("order/detail.html", order=order)
Exemple #5
0
def send_order(id):
    order = Order.get_by_id(id)
    order.delivered()
    return render_template("order/detail.html", order=order)