diff --git a/app/assets/stylesheets/CRM.scss b/app/assets/stylesheets/CRM.scss
index 50529aea..18bdca31 100755
--- a/app/assets/stylesheets/CRM.scss
+++ b/app/assets/stylesheets/CRM.scss
@@ -87,3 +87,29 @@
}
+.cashier_number{
+ width: 33%;
+ height:58px;
+ line-height:58px;
+ text-align:center;
+ background:#54A5AF;
+ // float:left;
+ // margin:2px;
+ font-size:20px;
+ color:white;
+ // cursor:pointer;
+}
+
+.red {
+ background-color:#F44336;
+}
+
+.green{
+ background-color: #009900;
+}
+.left{
+ margin-left:1px;
+}
+.bottom{
+ margin-bottom:1px;
+}
diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb
index d8ee10fb..2a277144 100755
--- a/app/controllers/crm/customers_controller.rb
+++ b/app/controllers/crm/customers_controller.rb
@@ -33,7 +33,7 @@ class Crm::CustomersController < BaseCrmController
end
end
end
- @crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(50)
+ @crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(15)
@crm_customer = Customer.new
@count_customer = Customer.count_customer
@@ -70,7 +70,7 @@ class Crm::CustomersController < BaseCrmController
#get customer amount
@customer = Customer.find(params[:id])
@response = Customer.get_membership_transactions(@customer)
-
+ puts @response.to_json
# @response = ""
#end customer amount
diff --git a/app/controllers/crm/dining_queues_controller.rb b/app/controllers/crm/dining_queues_controller.rb
index a48e03a7..480ad08e 100755
--- a/app/controllers/crm/dining_queues_controller.rb
+++ b/app/controllers/crm/dining_queues_controller.rb
@@ -7,6 +7,7 @@ class Crm::DiningQueuesController < BaseCrmController
def index
today = DateTime.now.strftime('%Y-%m-%d')
@dining_queues = DiningQueue.where("DATE_FORMAT(created_at,'%Y-%m-%d') = ? and status is NULL ", today).order("queue_no asc")
+ @complete_queue = DiningQueue.where("DATE_FORMAT(created_at,'%Y-%m-%d') = ? and status = 'Assign' ", today).order("queue_no asc")
end
# GET /crm/dining_queues/1
diff --git a/app/controllers/origami/discounts_controller.rb b/app/controllers/origami/discounts_controller.rb
index 82e878bd..c1319bfe 100755
--- a/app/controllers/origami/discounts_controller.rb
+++ b/app/controllers/origami/discounts_controller.rb
@@ -215,7 +215,7 @@ class Origami::DiscountsController < BaseOrigamiController
else
response = {"status": false, "message": "You have no selected discount item" }
end
- puts "discount"
+ puts "discountttttttttttt"
puts response.to_json
# Re-calc All Amount in Sale
if response["status"] == true
diff --git a/app/views/crm/customers/_new_form.html.erb b/app/views/crm/customers/_new_form.html.erb
index 300603a3..992512f2 100755
--- a/app/views/crm/customers/_new_form.html.erb
+++ b/app/views/crm/customers/_new_form.html.erb
@@ -22,7 +22,7 @@
str="[\"#{msg['name']}\"]"
str.gsub!('["', '')
str.gsub!('"]', '') %>
-
<%= @queue_no %>
-<%= queue.id %>
-<%= queue.status %>
- Queue No : <%= queue.queue_no %> - Seater : <%= queue.seater %><%= queue.id %>
+<%= queue.status %>
+ Queue No : <%= queue.queue_no %> + Seater : <%= queue.seater %>There is no queue Now !
+ <% end %> +
+ 1) Latest Queue No - <%= @complete_queue.last.queue_no%>
+ 2) Next Queue No - <% @next = @complete_queue.last.queue_no.to_i + 1%>
+ <%= @next%>
+ 3) Today Completed Queue - <%= @complete_queue.count %>
+
+
+ 1) <%= t("views.right_panel.button.cancel") %>
+ <%= t("views.right_panel.button.queue") %> -
+ <%= t("views.right_panel.detail.cancel_btn_txt") %>
+ <%= t("views.right_panel.detail.queue_txt") %>
+
+ 2) <%= t("views.btn.new") %>
+ <%= t("views.right_panel.button.queue") %> -
+ <%= t("views.right_panel.detail.create_btn_txt") %>
+ <%= t("views.right_panel.detail.queue_txt") %>
+
+ 2) <%= t("views.btn.assign") %>
+ <%= t("views.right_panel.button.queue") %> -
+ <%= t("views.right_panel.detail.assign_txt") %>
+ <%= t("views.right_panel.detail.queue_txt") %>
+
+ 1) <%= t("views.right_panel.button.home") %> - <%= t("views.right_panel.detail.home_txt") %>
+ 2) <%= t("views.right_panel.button.back") %> - <%= t("views.right_panel.detail.back_txt") %> <%= t("views.right_panel.detail.home_txt") %>
+