Read NFC
This commit is contained in:
@@ -9,7 +9,7 @@ class Transactions::BookingsController < ApplicationController
|
||||
to = params[:to]
|
||||
|
||||
if filter.nil? && from.nil? && to.nil?
|
||||
@bookings = Booking.where("shop_code=?",@shop.shop_code).order("sale_id desc")
|
||||
@bookings = Booking.order("sale_id desc")
|
||||
@bookings = Kaminari.paginate_array(@bookings).page(params[:page]).per(20)
|
||||
else
|
||||
booking = Booking.search(filter,from,to)
|
||||
|
||||
Reference in New Issue
Block a user