crm customer chagnes

This commit is contained in:
phyusin
2018-10-02 11:57:07 +06:30
parent 048126f9dd
commit 4a2f7b0e4b
12 changed files with 72 additions and 66 deletions

View File

@@ -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 = []