update no table quick srevice
This commit is contained in:
@@ -9,8 +9,14 @@ class Origami::SurveysController < BaseOrigamiController
|
||||
@receipt_no = @sale.receipt_no
|
||||
@grand_total = @sale.grand_total
|
||||
@booking = Booking.find_by_sale_id(@id)
|
||||
@dining_facility = DiningFacility.find(@booking.dining_facility_id)
|
||||
@table_type = @dining_facility.type
|
||||
if @booking.dining_facility_id.to_i>0
|
||||
@dining_facility = DiningFacility.find(@booking.dining_facility_id)
|
||||
@table_type = @dining_facility.type
|
||||
else
|
||||
@dining_facility = nil
|
||||
@table_type = nil
|
||||
end
|
||||
|
||||
else
|
||||
@dining_facility = DiningFacility.find(@id)
|
||||
@table_type = @dining_facility.type
|
||||
@@ -20,8 +26,9 @@ class Origami::SurveysController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def create
|
||||
@dining_facility = DiningFacility.find(params[:table_id])
|
||||
|
||||
if params[:table_id].to_i>0
|
||||
@dining_facility = DiningFacility.find(params[:table_id])
|
||||
end
|
||||
@type = params[:cashier_type]
|
||||
@sale_id = params[:sale_id]
|
||||
if @type == "quick_service"
|
||||
|
||||
Reference in New Issue
Block a user