示例#1
0
	def POST(self):
		pdata = web.input(order_id=None, item_id = None, qty = None)
		delete_item(int(pdata.order_id), int(pdata.item_id))
		add_item(int(pdata.order_id), int(pdata.item_id), int(pdata.qty))
		orlist = get_order(pdata.order_id)
		rec = get_receipt(int(pdata.order_id))
		page = render.waiter_order_banner(order_id = pdata.order_id, olist = orlist, receipt = rec)
		return render_page(page)
示例#2
0
	def GET(self):
		order = web.input(order_id = 0)
		orlist = get_order(order.order_id)
		rec = get_receipt(order.order_id)
		page = render.waiter_order_banner(order_id = order.order_id, olist = orlist, receipt = rec)
		return render_page(page)