update home controller for table today

This commit is contained in:
Aung Myo
2018-06-25 17:27:05 +06:30
parent 34bfc04714
commit 1e5677ff48

View File

@@ -61,7 +61,7 @@ class Origami::HomeController < BaseOrigamiController
# end
# end
# end
@dining_booking = @dining.bookings.where("DATE_FORMAT(created_at,'%Y-%m-%d') = ? and booking_status != 'billed'",DateTime.now.strftime('%Y-%m-%d'))
@dining_booking = @dining.bookings.where("DATE_FORMAT(created_at,'%Y-%m-%d') = ? and booking_status != 'moved'",DateTime.now.strftime('%Y-%m-%d'))
Rails.logger.info "Input Count SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS"
Rails.logger.info @dining_booking.count
@dining_booking.each do |booking|