if @order

	json.(@order, :order_reservation_id,:order_reservation_type,:customer_id,
						:requested_time,:pickup_time,:expected_waiting_time,:callback_url,:transaction_ref,:item_count,:total_customer,:payment_type,
						:payment_status,:payment_ref,:taxes,:total_amount,:total_tax,
						:discount_amount,:convenience_charge,:grand_total,:status,:order_remark,
						:remark,:sale_id,:action_times)
	@delivery = Delivery.find_by_order_reservation_id(@order.order_reservation_id)
	if @delivery
	    json.delivery do |json|
		  # json.(@article.author, :id, :name)
		  json.(@delivery, :provider,:delivery_type,:township,
							:address,:direction_address,:delivery_fee,:remark)
		end
	end
	if @order.order_reservation_items
	    json.order_items @order.order_reservation_items do |item|
	    	json.partial! 'origami/order_reservation/order_item', item: item
	    end
	end
	@customer = Customer.find(@order.customer_id)

	json.customer_name @customer.name
	json.phone @customer.contact_no
	if @order.sale_id
		@receipt_no = Sale.find(@order.sale_id).receipt_no
	    json.receipt_no @receipt_no
	end
	
end
