This commit is contained in:
Nweni
2017-06-02 11:30:10 +06:30
parent 926c54c079
commit a9259ca845
2 changed files with 5 additions and 4 deletions

View File

@@ -36,8 +36,8 @@ class Api::OrdersController < Api::ApiController
#Create Table Booking or Room Booking #Create Table Booking or Room Booking
if !params["booking_id"].nil? && params[:booking_id].to_i > 0 if !params["booking_id"].nil? && params[:booking_id].to_i > 0
@order.new_booking = false #@order.new_booking = false
# @order.new_booking = true @order.new_booking = true
@order.booking_id = params[:booking_id] @order.booking_id = params[:booking_id]
end end

View File

@@ -16,6 +16,7 @@ class Order < ApplicationRecord
# option_values : [], # option_values : [],
# sub_order_items : [], # sub_order_items : [],
# } # }
def generate def generate
booking = nil booking = nil