diff --git a/app/views/crm/customers/index.html.erb b/app/views/crm/customers/index.html.erb index 89900056..2682f203 100755 --- a/app/views/crm/customers/index.html.erb +++ b/app/views/crm/customers/index.html.erb @@ -13,74 +13,85 @@
-
- - - - - - - - - - - - - - - - - - - <% if @crm_customers.count > 0 %> - <% @i = 0 %> - <% @crm_customers.each do |crm_customer| %> - - - - - - - - - <% end %> - <% else %> - - <% end %> - -
- -
- <%= form_tag crm_customers_path, :id => "filter_form", :method => :get do %> -
-
- - -
- - - - - +
+
+
+ <%= form_tag crm_customers_path, :id => "filter_form", :method => :get do %> +
+
+ +
- <% end %> + + + + +
-
<%= t("views.right_panel.detail.sr_no") %><%= t("views.right_panel.detail.name") %><%= t("views.right_panel.detail.card_no") %><%= t("views.right_panel.detail.contact_no") %><%= t("views.right_panel.detail.email") %><%= t("views.right_panel.detail.action") %>
- - <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> - <%= @i += 1 %> - <%else%> - - - <% end %> - <%= crm_customer.name %><%= crm_customer.card_no rescue '-' %><%= crm_customer.contact_no %><%= crm_customer.email %><%= link_to t("views.btn.show"), crm_customer_path(crm_customer) %>

There is no data for search <%=@filter%>....

-
- <%= paginate @crm_customers %> +
+
+
+
+ + + + + + + + + + + + + + + + + <% if @crm_customers.count > 0 %> + <% @i = 0 %> + <% @crm_customers.each do |crm_customer| %> + + + + + + + + + + <% end %> + <% else %> + + <% end %> + +
<%= t("views.right_panel.detail.sr_no") %><%= t("views.right_panel.detail.name") %><%= t("views.right_panel.detail.card_no") %><%= t("views.right_panel.detail.contact_no") %><%= t("views.right_panel.detail.email") %><%= t("views.right_panel.detail.action") %>
+ + + <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> + <%= @i += 1 %> + <%else%> + - + <% end %> + <%= crm_customer.name %><%= crm_customer.card_no rescue '-' %><%= crm_customer.contact_no %><%= crm_customer.email %><%= link_to t("views.btn.show"), crm_customer_path(crm_customer) %>

There is no data for search <%=@filter%>....

+
+ <%= paginate @crm_customers %> +
+
+
+ +
diff --git a/app/views/origami/customers/index.html.erb b/app/views/origami/customers/index.html.erb index 18512b93..e788a08f 100755 --- a/app/views/origami/customers/index.html.erb +++ b/app/views/origami/customers/index.html.erb @@ -14,86 +14,84 @@
-
-
- +
+
+
+ + <% path ="/origami/#{@sale_id}/customers" %> + <%= form_tag path, :id => "filter_form", :method => :get do %> +
+
-
+ + - - + <% end %> + <%else%> + + <% end %> + +
- -
- <% path ="/origami/#{@sale_id}/customers" %> - <%= form_tag path, :id => "filter_form", :method => :get do %> -
-
+
+
+ +
- - + -
-
- -
+
+ <% end %> + + +
+
+ + + + + + + + + + + + - + + <% if @crm_customers.count > 0 %> + <% @i = 0 %> + <% @crm_customers.each do |crm_customer| %> - - <% end %> - - - - - - - - - - - - - - - - <% if @crm_customers.count > 0 %> - <% @i = 0 %> - <% @crm_customers.each do |crm_customer| %> - - - + - - - - - + + + + + + + - - <% end %> - <%else%> - - <% end %> - -
<%= t("views.right_panel.detail.sr_no") %><%= t("views.right_panel.detail.name") %><%= t("views.right_panel.detail.card_no") %><%= t("views.right_panel.detail.contact_no") %><%= t("views.right_panel.detail.email") %>
<%= t("views.right_panel.detail.sr_no") %><%= t("views.right_panel.detail.name") %><%= t("views.right_panel.detail.card_no") %><%= t("views.right_panel.detail.contact_no") %><%= t("views.right_panel.detail.email") %>
-
- <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> - <%= @i += 1 %> - <%else%> - - - <% end %> - <%= crm_customer.name %><%= crm_customer.company rescue '-' %><%= crm_customer.contact_no %><%= crm_customer.email %> + <% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> + <%= @i += 1 %> + <%else%> + - + <% end %> + <%= crm_customer.name %><%= crm_customer.company rescue '-' %><%= crm_customer.contact_no %><%= crm_customer.email %>

There are no record for your search

-
+

There are no record for your search

+
- <%= paginate @crm_customers %> + <%= paginate @crm_customers %> +
diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb index aee41b77..05f14c04 100755 --- a/app/views/origami/rooms/show.html.erb +++ b/app/views/origami/rooms/show.html.erb @@ -232,7 +232,7 @@ end if @status_order == 'order' && @status_sale != 'sale' - unless @order_items.nil? + unless @order_items.nil? || @order_items.empty? count = 0 @order_items.each do |order_item | count += 1 @@ -291,7 +291,7 @@
<% if @status_sale == 'sale' - unless @order_items.nil? + unless @order_items.nil? || @order_items.empty? %> Pending New Order