no change
This commit is contained in:
@@ -15,7 +15,7 @@ class BaseOrigamiController < ActionController::Base
|
|||||||
redirect_to origami_dashboard_path
|
redirect_to origami_dashboard_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_user
|
def check_user
|
||||||
if check_mobile
|
if check_mobile
|
||||||
if current_user.nil?
|
if current_user.nil?
|
||||||
return render status: 401, json: {
|
return render status: 401, json: {
|
||||||
|
|||||||
@@ -15,12 +15,11 @@ class Origami::OtherChargesController < BaseOrigamiController
|
|||||||
@table = DiningFacility.find(@sale_data.bookings[0].dining_facility_id)
|
@table = DiningFacility.find(@sale_data.bookings[0].dining_facility_id)
|
||||||
else
|
else
|
||||||
@table = nil
|
@table = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
sale_id = params[:sale_id]
|
sale_id = params[:sale_id]
|
||||||
other_charges_items = JSON.parse(params[:other_charges_items])
|
other_charges_items = JSON.parse(params[:other_charges_items])
|
||||||
sub_total = params[:sub_total]
|
sub_total = params[:sub_total]
|
||||||
@@ -79,8 +78,6 @@ class Origami::OtherChargesController < BaseOrigamiController
|
|||||||
if !table.nil?
|
if !table.nil?
|
||||||
dining = {:table_id => table_id, :table_type => table.type }
|
dining = {:table_id => table_id, :table_type => table.type }
|
||||||
render :json => dining.to_json
|
render :json => dining.to_json
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user