print settings ActionCable
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
<%= stylesheet_link_tag 'order_reservation', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'order_reservation', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'order_reservation', 'data-turbolinks-track': 'reload' %>
|
||||
<div class="container-fluid m-top-100">
|
||||
<!-- start count function -->
|
||||
<%
|
||||
<%
|
||||
pending_count = 0
|
||||
accepted_count = 0
|
||||
delivered_count = 0
|
||||
completed_count = 0
|
||||
processed_count = 0
|
||||
%>
|
||||
<% if !@count_on_order.nil?
|
||||
@count_on_order.each do |count_order|
|
||||
if count_order.status == "new"
|
||||
<% if !@count_on_order.nil?
|
||||
@count_on_order.each do |count_order|
|
||||
if count_order.status == "new"
|
||||
pending_count = count_order.count
|
||||
elsif count_order.status == "accepted"
|
||||
accepted_count = count_order.count
|
||||
@@ -19,16 +19,16 @@
|
||||
delivered_count = count_order.count
|
||||
elsif count_order.status == "ready_to_delivery"
|
||||
completed_count = count_order.count
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if !@count_on_completed.nil?
|
||||
processed_count = @count_on_completed.count
|
||||
end
|
||||
%>
|
||||
<!-- end count function -->
|
||||
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
|
||||
|
||||
<% if request.user_agent.include? "Mobile" %>
|
||||
<div class="row m-t-10" style="margin-left: 0.2rem">
|
||||
<% else %>
|
||||
@@ -125,7 +125,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--- Panel 3 - Orders -->
|
||||
@@ -179,7 +179,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--- Panel 3 - Orders -->
|
||||
<div class="tab-pane dining" id="delivery" role="tabpanel">
|
||||
@@ -232,7 +232,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--- Panel 3 - Orders -->
|
||||
<div class="tab-pane dining" id="completed" role="tabpanel">
|
||||
@@ -285,7 +285,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--- Panel 5 - processed -->
|
||||
<div class="tab-pane dining" id="processed" role="tabpanel">
|
||||
@@ -338,7 +338,7 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -350,7 +350,7 @@
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td width ="10%" class="header-td align-left">
|
||||
<b class="col-pink font-16"><span id="sr_number"></span></b>
|
||||
<b class="col-pink font-16"><span id="sr_number"></span></b>
|
||||
</td>
|
||||
<td width="40%" class="header-td align-left">
|
||||
<b><span class="font-15" id="requested_date_time"></span></b>
|
||||
@@ -378,7 +378,7 @@
|
||||
<br><span class="font-13">2 <span class="col-blue">X700</span></span>
|
||||
</td>
|
||||
<td width ="30%" class="body-td align-right">1400.00</td>
|
||||
</tr> -->
|
||||
</tr> -->
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -388,7 +388,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width ="70%" class="footer-td align-left" >
|
||||
SUB TOTAL
|
||||
SUB TOTAL
|
||||
</td>
|
||||
<td width ="30%" class="footer-td align-right" id="sub_total">0.00</td>
|
||||
</tr>
|
||||
@@ -419,19 +419,19 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% if request.user_agent.include? "Mobile" %>
|
||||
<div class="col-lg-3 col-md-3 col-sm-3" style="margin-right: 0.5rem">
|
||||
<% else %>
|
||||
<div class="col-lg-3 col-md-3 col-sm-3">
|
||||
<% end %>
|
||||
|
||||
|
||||
<div class="card m-b-5 p-t-5" style="background-color: #E8EAF6">
|
||||
<div class="card-header custom-card-header" style="background-color: #E8EAF6">
|
||||
<table class="table">
|
||||
<tr>
|
||||
<td class="header-td align-left col-blue">CUSTOMER & DELIVERY INFORMATION
|
||||
<td class="header-td align-left col-blue">CUSTOMER & DELIVERY INFORMATION
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -541,7 +541,7 @@
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<% if current_user.role != "waiter" %>
|
||||
<tr class="order_close_cashier" style="display:none">
|
||||
<td colspan="2" width="100%" class="footer-td align-right col-blue">
|
||||
@@ -559,12 +559,16 @@
|
||||
<div id="<%= @shop.shop_code ? @shop.shop_code : '' %>_notify_order_send_to_kitchen"></div>
|
||||
<div id="<%= @shop.shop_code ? @shop.shop_code : '' %>_notify_order_ready_to_delivery"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<p id="ref_no" class="hidden"></p>
|
||||
<p id="callback_url" class="hidden"></p>
|
||||
<p id="order_id" class="hidden"></p>
|
||||
<p id="status" class="hidden"></p>
|
||||
|
||||
<%= print_settings %>
|
||||
|
||||
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
|
||||
|
||||
<div class="modal fade" id="waiting_timeModal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-md" role="document">
|
||||
<div class="modal-content">
|
||||
@@ -656,7 +660,7 @@
|
||||
<h4 class="modal-title" id="AccessCodeModalLabel">Enter Access Code</h4>
|
||||
<button type="button" class="close" id="close" data-dismiss="modal" aria-hidden="true" style="font-size: 20px;color:#111;">×</button>
|
||||
</div>
|
||||
<div class="modal-body" style="padding: 0px 25px 15px 25px !important">
|
||||
<div class="modal-body" style="padding: 0px 25px 15px 25px !important">
|
||||
<input type="password" id="access_code" class="access_code form-control col-md-12 ">
|
||||
<div class="row bottom p-l-15 p-r-15 m-t-10">
|
||||
<div class="col-md-3 access_number border-top border-left" data-value="1" data-type="num">1</div>
|
||||
@@ -675,12 +679,12 @@
|
||||
<div class="col-md-3 access_number border-top border-left" data-value="0" data-type="num">0</div>
|
||||
<div class="col-md-3 access_number border-top border-left orange" data-type="clr">Clr</div>
|
||||
<div class="col-md-3 access_number ok border-top border-left blue" data-type="ok" data-action="void">OK</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- pdf light box -->
|
||||
<div class="modal fade" id="receiptpdfModal" tabindex="-1" role="dialog" >
|
||||
@@ -696,13 +700,13 @@
|
||||
<input type="hidden" name="sale_receipt_no" id="sale_receipt_no">
|
||||
<input type="hidden" name="filename" id="filename">
|
||||
<input type="hidden" name="printer_name" id="printer_name">
|
||||
<div class="text-center">
|
||||
<div class="text-center">
|
||||
<iframe id="receipt_pdf" src="" class="pdf-iframe" scrolling="no"></iframe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="mr-2 m-t-5 btn-lg btn-block bg-red waves-effect print_receipt_pdf" id="print_receipt_pdf"> Print
|
||||
</button>
|
||||
</button>
|
||||
<button type="button" class="btn-lg btn-block bg-blue waves-effect btn_pdf_close" data-dismiss="modal">
|
||||
CLOSE
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user