update print pay in qs
This commit is contained in:
@@ -157,8 +157,14 @@ class Origami::PaymentsController < BaseOrigamiController
|
||||
|
||||
if params[:type] == "quick_service"
|
||||
booking = Booking.find_by_sale_id(sale_id)
|
||||
if booking.dining_facility_id.to_i>0
|
||||
table_id = booking.dining_facility_id
|
||||
else
|
||||
table_id = 0
|
||||
end
|
||||
|
||||
booking.booking_orders.each do |order|
|
||||
Order.pay_process_order_queue(order.order_id,booking.dining_facility_id)
|
||||
Order.pay_process_order_queue(order.order_id,table_id,sale_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user