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)
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)
def draft_order(id): order = Order.get_by_id(id) order.draft() return render_template("order/detail.html", order=order)
def order_detail(id): order = Order.get_by_id(id) return render_template("order/detail.html", order=order)
def send_order(id): order = Order.get_by_id(id) order.delivered() return render_template("order/detail.html", order=order)