Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into adminbsb_ui_changes
This commit is contained in:
@@ -480,9 +480,16 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
|
|
||||||
sale_payment = SalePayment.new
|
sale_payment = SalePayment.new
|
||||||
sale_payment.process_payment(saleObj, current_user.name, cash, "foc" ,remark)
|
sale_payment.process_payment(saleObj, current_user.name, cash, "foc" ,remark)
|
||||||
type = 'payment'
|
|
||||||
from = getCloudDomain #get sub domain in cloud mode
|
bookings = Booking.where("sale_id='#{sale_id}'")
|
||||||
ActionCable.server.broadcast "order_channel",table: table,type:type,from:from
|
if bookings[0].dining_facility_id.to_i > 0
|
||||||
|
table = DiningFacility.find(bookings[0].dining_facility_id)
|
||||||
|
type = 'payment'
|
||||||
|
from = getCloudDomain #get sub domain in cloud mode
|
||||||
|
ActionCable.server.broadcast "order_channel",table: table,type:type,from:from
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# For Cashier by Zone
|
# For Cashier by Zone
|
||||||
bookings = Booking.where("sale_id='#{sale_id}'")
|
bookings = Booking.where("sale_id='#{sale_id}'")
|
||||||
|
|||||||
Reference in New Issue
Block a user