update customer view and order add column table and orderby
This commit is contained in:
@@ -33,12 +33,14 @@ class Crm::CustomersController < BaseCrmController
|
||||
end
|
||||
end
|
||||
end
|
||||
@crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(15)
|
||||
@crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(5)
|
||||
@crm_customer = Customer.new
|
||||
@count_customer = Customer.count_customer
|
||||
|
||||
@taxes = TaxProfile.all.order("order_by asc")
|
||||
|
||||
@filter = filter
|
||||
|
||||
# if flash["errors"]
|
||||
# @crm_customer.valid?
|
||||
# end
|
||||
|
||||
@@ -34,7 +34,7 @@ class Transactions::OrdersController < ApplicationController
|
||||
def show
|
||||
|
||||
@order = Order.find(params[:id])
|
||||
|
||||
@dining = BookingOrder.find_by_order_id(@order.order_id).booking.dining_facility
|
||||
respond_to do |format|
|
||||
format.html # show.html.erb
|
||||
format.json { render json: @order }
|
||||
|
||||
Reference in New Issue
Block a user