crm customer chagnes
This commit is contained in:
@@ -70,8 +70,8 @@ class Crm::CustomersController < BaseCrmController
|
||||
# GET /crm/customers/1
|
||||
# GET /crm/customers/1.json
|
||||
def show
|
||||
@orders = Order.where("customer_id=?", params[:id])
|
||||
@sales = Sale.where("customer_id=?", params[:id])
|
||||
@orders = Order.where("customer_id=?", params[:id]).limit(20)
|
||||
@sales = Sale.where("customer_id=?", params[:id]).limit(20)
|
||||
|
||||
if @orders
|
||||
@order_items = []
|
||||
|
||||
@@ -97,7 +97,7 @@ class Origami::OrderReservationController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def get_order_info
|
||||
order_reservation = OrderReservation.where("status = 'new' OR status='accepted' OR status='send_to_kitchen' OR status = 'ready_to_delivery'").count()
|
||||
order_reservation = OrderReservation.where("status = 'new'").count()
|
||||
render :json => order_reservation
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user