change ui not same for table, room and order
This commit is contained in:
@@ -286,14 +286,15 @@ section.content {
|
|||||||
|
|
||||||
/* shop name margin */
|
/* shop name margin */
|
||||||
.shop-name-margin {
|
.shop-name-margin {
|
||||||
margin-left : 10%;
|
text-align: center;
|
||||||
|
width: 50%;
|
||||||
|
margin: auto;
|
||||||
}
|
}
|
||||||
/* shop name margin */
|
/* shop name margin */
|
||||||
|
|
||||||
/* online order margin */
|
/* online order margin */
|
||||||
.online-order-margin {
|
.online-order-margin {
|
||||||
margin-left : 10%;
|
margin: auto;
|
||||||
margin-bottom : 9.9999px;
|
|
||||||
}
|
}
|
||||||
/* online order margin */
|
/* online order margin */
|
||||||
/* default-header-color */
|
/* default-header-color */
|
||||||
@@ -303,18 +304,18 @@ div.online-order-margin > div > span {
|
|||||||
/* default-header-color */
|
/* default-header-color */
|
||||||
/* order-no color */
|
/* order-no color */
|
||||||
.order-badge {
|
.order-badge {
|
||||||
position: absolute;
|
position: relative;
|
||||||
background: #ff6600;
|
background: #ff6600;
|
||||||
height: 1.8rem;
|
height: 1.8rem;
|
||||||
bottom: -0.1rem;
|
bottom: 0.9rem;
|
||||||
right: -1.3rem;
|
right: 1.7rem;
|
||||||
width: 1.8rem;
|
width: 1.8rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 1.7rem;
|
line-height: 1.7rem;
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: white;
|
color: white;
|
||||||
border: 1px solid #ff6600;
|
border: 5px solid #ff6600;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -246,7 +246,16 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var paypar_account_no = [];
|
var paypar_account_no = [];
|
||||||
$(function() {
|
$(function() {
|
||||||
paypar_account_no = JSON.parse('<%= @paypar_accountno.to_json.html_safe %>');
|
paypar_account_no = JSON.parse('<%= @paypar_accountno.to_json.html_safe %>', function (key, value) {
|
||||||
|
var type;
|
||||||
|
if (value && typeof value === 'object') {
|
||||||
|
type = value.type;
|
||||||
|
if (typeof type === 'string' && typeof window[type] === 'function') {
|
||||||
|
return new(window[type])(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
});
|
||||||
console.log(paypar_account_no);
|
console.log(paypar_account_no);
|
||||||
|
|
||||||
// Read Card Reader
|
// Read Card Reader
|
||||||
|
|||||||
@@ -37,20 +37,21 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- Start Shop Info -->
|
<!-- Start Shop Info -->
|
||||||
<div class="navbar-right shop-name-margin">
|
<div class="navbar-right shop-name-margin">
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 navbar-brand">
|
<span class="navbar-brand navbar-brand-txt"><%= shop_detail.name %></span>
|
||||||
<span class="navbar-brand-txt"><%= shop_detail.name %></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- End Shop Info -->
|
<!-- End Shop Info -->
|
||||||
|
|
||||||
<div class="navbar-right online-order-margin">
|
<div class="navbar-right online-order-margin">
|
||||||
<% if order_reservation %>
|
<% if order_reservation %>
|
||||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 online_order">
|
<div class="online_order">
|
||||||
<span class="navbar-brand-txt header-default-color"><%= t :order_reservation %></span>
|
<span class="navbar-brand navbar-brand-txt header-default-color"><%= t :order_reservation %></span>
|
||||||
<span class="order_no"></span>
|
<span class="order_no"></span>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Start Quick Access for Cashier -->
|
||||||
|
<!-- End Quick Access for Cashier -->
|
||||||
|
|
||||||
<!-- Start Delete confirrm text !-->
|
<!-- Start Delete confirrm text !-->
|
||||||
<div class="navbar-right">
|
<div class="navbar-right">
|
||||||
|
|||||||
@@ -366,7 +366,16 @@
|
|||||||
var page = "<%= @page %>";
|
var page = "<%= @page %>";
|
||||||
var paypar_account_no = [];
|
var paypar_account_no = [];
|
||||||
$(function() {
|
$(function() {
|
||||||
paypar_account_no = JSON.parse('<%= @paypar_accountno.to_json.html_safe %>');
|
paypar_account_no = JSON.parse('<%= @paypar_accountno.to_json.html_safe %>', function (key, value) {
|
||||||
|
var type;
|
||||||
|
if (value && typeof value === 'object') {
|
||||||
|
type = value.type;
|
||||||
|
if (typeof type === 'string' && typeof window[type] === 'function') {
|
||||||
|
return new(window[type])(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return value;
|
||||||
|
});
|
||||||
console.log(paypar_account_no);
|
console.log(paypar_account_no);
|
||||||
/* check webview loaded*/
|
/* check webview loaded*/
|
||||||
var webview = <%= @webview %>;
|
var webview = <%= @webview %>;
|
||||||
|
|||||||
@@ -52,7 +52,8 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %>"> billed</span>
|
<span class="float-right font-12 new_text_<%= table.id %>"> billed</span>
|
||||||
<div style="font-size:12px;"></div>
|
<div style="font-size:12px;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -64,7 +65,8 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %>"> new</span>
|
<span class="float-right font-12 new_text_<%= table.id %>"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -72,7 +74,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %> hide"> new</span>
|
<span class="float-right font-12 new_text_<%= table.id %> hide"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -93,7 +96,8 @@
|
|||||||
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %>"> billed</span>
|
<span class="float-right font-12 new_text_<%= room.id %>"> billed</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -104,7 +108,8 @@
|
|||||||
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %>"> new</span>
|
<span class="float-right font-12 new_text_<%= room.id %>"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -112,7 +117,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %> hide">
|
<span class="float-right font-12 new_text_<%= room.id %> hide">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -49,7 +49,8 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %>"> billed</span>
|
<span class="float-right font-12 new_text_<%= table.id %>"> billed</span>
|
||||||
<div style="font-size:12px;"></div>
|
<div style="font-size:12px;"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,7 +62,8 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %>"> new</span>
|
<span class="float-right font-12 new_text_<%= table.id %>"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -69,7 +71,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %> hide"> new</span>
|
<span class="float-right font-12 new_text_<%= table.id %> hide"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -86,22 +89,25 @@
|
|||||||
<% if room.get_booking.nil? %>
|
<% if room.get_booking.nil? %>
|
||||||
<div class="card rooms red text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms red text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %>"> billed</span>
|
<%= room.zone.name %>
|
||||||
|
<span class="float-right font-12 new_text_<%= room.id %>"> billed</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="card rooms blue text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms blue text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %>"> new</span>
|
<%= room.zone.name %>
|
||||||
|
<span class="float-right font-12 new_text_<%= room.id %>"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %> hide">
|
<span class="float-right font-12 new_text_<%= room.id %> hide">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -52,13 +52,14 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(table.id) %>
|
<% if @order_items_count.key?(table.id) %>
|
||||||
(Orders : <%= @order_items_count[table.id] %>)
|
(Orders : <%= @order_items_count[table.id] %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %> -->
|
<% end %> -->
|
||||||
<span class="pull-right font-12 new_text_<%= table.id %>"> billed</span>
|
<span class="float-right font-12 new_text_<%= table.id %>"> billed</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% else %>
|
<% else %>
|
||||||
@@ -68,21 +69,23 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(table.id) %>
|
<% if @order_items_count.key?(table.id) %>
|
||||||
(Orders : <%= @order_items_count[table.id] %>)
|
(Orders : <%= @order_items_count[table.id] %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %> -->
|
<% end %> -->
|
||||||
<span class="pull-right font-12 new_text_<%= table.id %>"> new</span>
|
<span class="float-right font-12 new_text_<%= table.id %>"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
<span class="pull-right font-12 new_text_<%= table.id %> hide">
|
<%= table.zone.name %>
|
||||||
|
<span class="float-right font-12 new_text_<%= table.id %> hide">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -103,13 +106,14 @@
|
|||||||
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(room.id) %>
|
<% if @order_items_count.key?(room.id) %>
|
||||||
(Orders : <%= @order_items_count[room.id] %>)
|
(Orders : <%= @order_items_count[room.id] %>)
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %> -->
|
<% end %> -->
|
||||||
<span class="pull-right font-12 new_text_<%= room.id %>"> billed</span>
|
<span class="float-right font-12 new_text_<%= room.id %>"> billed</span>
|
||||||
<div style="font-size:12px;"></div>
|
<div style="font-size:12px;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -120,7 +124,8 @@
|
|||||||
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms orange text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(room.id) %>
|
<% if @order_items_count.key?(room.id) %>
|
||||||
(Orders : <%= @order_items_count[room.id] %>)
|
(Orders : <%= @order_items_count[room.id] %>)
|
||||||
@@ -133,7 +138,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<span class="pull-right font-12 new_text_<%= room.id %> hide">
|
<span class="pull-right font-12 new_text_<%= room.id %> hide">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -220,7 +226,7 @@
|
|||||||
<%end%>
|
<%end%>
|
||||||
<%end%>
|
<%end%>
|
||||||
<div class="card-header <%= existing_class %>" <%= tooltip %>>
|
<div class="card-header <%= existing_class %>" <%= tooltip %>>
|
||||||
<% if @status_order == 'order' %>
|
<% if @status_order == 'order' && @status_sale != 'sale' %>
|
||||||
<% if !@obj_order.nil? %>
|
<% if !@obj_order.nil? %>
|
||||||
<div id="save_order_id" data-order="<%= @obj_order.order_id %>">
|
<div id="save_order_id" data-order="<%= @obj_order.order_id %>">
|
||||||
<% else %>
|
<% else %>
|
||||||
@@ -242,44 +248,51 @@
|
|||||||
<span class="float-right">Checkin Time : <%= @booking.checkin_at.utc.getlocal.strftime("%I:%M %p") %></span>
|
<span class="float-right">Checkin Time : <%= @booking.checkin_at.utc.getlocal.strftime("%I:%M %p") %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<strong id="order-title">ORDER DETAILS </strong> | Room <%= @room.name rescue "" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<div class="card-title row p-l-5 p-r-5">
|
<div class="card-title row p-l-5 p-r-5">
|
||||||
|
<% if (!@sale_array.empty?) && (!@date.nil?) %>
|
||||||
<% if @status_sale == 'sale' %>
|
<div class="col-lg-8 col-md-8 col-sm-8">
|
||||||
<div class="col-lg-8 col-md-8 col-sm-8">
|
Receipt No: <span id="receipt_no">
|
||||||
Receipt No:
|
<% if @status_sale == 'sale' %>
|
||||||
<span id="receipt_no">
|
<%= @sale_array[0].receipt_no rescue '' %>
|
||||||
<%= @obj_sale.receipt_no rescue '' %>
|
<% end %>
|
||||||
</span>
|
</span>
|
||||||
|
<br>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-4 col-md-4 col-sm-4 text-right">
|
<div class="col-lg-4 col-md-4 col-sm-4 text-right">
|
||||||
Date: <span id="receipt_date"><%= @date.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%></span>
|
Date: <span id="receipt_date"><%= @date.utc.getlocal.strftime("%d/%m/%Y-%I:%M %p") rescue '-' %></span>
|
||||||
</div>
|
<br>
|
||||||
<% else %>
|
</div>
|
||||||
<div class="col-lg-7 col-md-7 col-sm-7">
|
<% elsif !@date.nil? %>
|
||||||
Order No:
|
<div class="col-lg-7 col-md-7 col-sm-7">
|
||||||
<span id="receipt_no">
|
Order No: <span id="order_no">
|
||||||
<%= @obj_order.order_id rescue '' %>
|
<% if @status_order == 'order' %>
|
||||||
</span>
|
<%= @obj_order.order_id rescue '' %>
|
||||||
|
<% end %>
|
||||||
|
</span>
|
||||||
|
<br>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-5 col-md-5 col-sm-5 text-right">
|
<div class="col-lg-5 col-md-5 col-sm-5 text-right">
|
||||||
Date: <span id="receipt_date"><%= @date.utc.getlocal.strftime("%d/%m/%Y") rescue '-'%></span>
|
Date: <span id="receipt_date"><%= @date.utc.getlocal.strftime("%d/%m/%Y") rescue '-' %></span>
|
||||||
</div>
|
<br>
|
||||||
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-title row customer_detail p-l-5 p-r-5" >
|
<div class="card-title row customer_detail p-l-5 p-r-5" >
|
||||||
<div class="col-lg-6 col-md-6 col-sm-6">
|
<div class="col-lg-6 col-md-6 col-sm-6">
|
||||||
<% if @status_sale == 'sale' %>
|
<% if @status_sale == 'sale' %>
|
||||||
<p class="hidden customer-id"><%= @obj_sale.customer_id rescue '' %></p>
|
<p class="hidden customer-id"><%= @sale_array[0].customer_id rescue '' %></p>
|
||||||
Customer : <%= @obj_sale.customer.name rescue '-' %>
|
Customer : <%= @sale_array[0].customer.name rescue '' %>
|
||||||
<%else%>
|
<% elsif @status_order == 'order'
|
||||||
<p class="hidden customer-id"><%= @obj_order.customer_id rescue "-" %></p>
|
%>
|
||||||
Customer : <%= @customer.name rescue "-" %>
|
<p class="hidden customer-id"><%= @customer.customer_id rescue "" %></p>
|
||||||
<%end%>
|
Customer : <%= @customer.name rescue "" %>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -288,7 +301,7 @@
|
|||||||
<table class="table table-striped" id="order-items-table">
|
<table class="table table-striped" id="order-items-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th>#</th>
|
||||||
<th class="item-name">Items</th>
|
<th class="item-name">Items</th>
|
||||||
<th class="item-attr">QTY</th>
|
<th class="item-attr">QTY</th>
|
||||||
<th class="item-attr">Price</th>
|
<th class="item-attr">Price</th>
|
||||||
|
|||||||
@@ -50,7 +50,8 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(table.id) %>
|
<% if @order_items_count.key?(table.id) %>
|
||||||
(Orders : <%= @order_items_count[table.id] %>)
|
(Orders : <%= @order_items_count[table.id] %>)
|
||||||
@@ -67,7 +68,8 @@
|
|||||||
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables orange text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(table.id) %>
|
<% if @order_items_count.key?(table.id) %>
|
||||||
(Orders : <%= @order_items_count[table.id] %>)
|
(Orders : <%= @order_items_count[table.id] %>)
|
||||||
@@ -79,8 +81,9 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
<div class="card tables green text-white table_<%= table.id %>" data-id="<%= table.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= table.name %>
|
<%= table.name %> <br>
|
||||||
|
<%= table.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= table.id %> hide"> new</span>
|
<span class="float-right font-12 new_text_<%= table.id %> hide"> new</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -97,7 +100,8 @@
|
|||||||
<% if room.get_booking.nil? %>
|
<% if room.get_booking.nil? %>
|
||||||
<div class="card rooms red text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms red text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %> <br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(room.id) %>
|
<% if @order_items_count.key?(room.id) %>
|
||||||
(Orders : <%= @order_items_count[room.id] %>)
|
(Orders : <%= @order_items_count[room.id] %>)
|
||||||
@@ -109,7 +113,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="card rooms blue text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms blue text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %><br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<!-- <% if !@order_items_count.nil? %>
|
<!-- <% if !@order_items_count.nil? %>
|
||||||
<% if @order_items_count.key?(room.id) %>
|
<% if @order_items_count.key?(room.id) %>
|
||||||
(Orders : <%= @order_items_count[room.id] %>)
|
(Orders : <%= @order_items_count[room.id] %>)
|
||||||
@@ -122,7 +127,8 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
<div class="card rooms green text-white table_<%= room.id %>" data-id="<%= room.id %>">
|
||||||
<div class="card-block">
|
<div class="card-block">
|
||||||
<%= room.name %>
|
<%= room.name %><br>
|
||||||
|
<%= room.zone.name %>
|
||||||
<span class="float-right font-12 new_text_<%= room.id %> hide">
|
<span class="float-right font-12 new_text_<%= room.id %> hide">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ scope "(:locale)", locale: /en|mm/ do
|
|||||||
|
|
||||||
#--------- Cashier ------------#
|
#--------- Cashier ------------#
|
||||||
namespace :origami do
|
namespace :origami do
|
||||||
|
root "home#index"
|
||||||
|
|
||||||
post '/check_emp_access_code/:code' => 'home#check_emp_access_code', :defaults => { :format => 'json' }
|
post '/check_emp_access_code/:code' => 'home#check_emp_access_code', :defaults => { :format => 'json' }
|
||||||
|
|
||||||
@@ -127,7 +128,6 @@ scope "(:locale)", locale: /en|mm/ do
|
|||||||
|
|
||||||
#food court routes
|
#food court routes
|
||||||
get "food_court" => "food_court#index"
|
get "food_court" => "food_court#index"
|
||||||
|
|
||||||
get "food_court/modify_order/:id/:sale_id" => "food_court#modify_order"
|
get "food_court/modify_order/:id/:sale_id" => "food_court#modify_order"
|
||||||
get "food_court/modify_order/:sale_id" => "food_court#modify_order"
|
get "food_court/modify_order/:sale_id" => "food_court#modify_order"
|
||||||
post 'food_court/update_modify_order' => "food_court#update_modify_order", :defaults => { :format => 'json' }
|
post 'food_court/update_modify_order' => "food_court#update_modify_order", :defaults => { :format => 'json' }
|
||||||
@@ -135,7 +135,7 @@ scope "(:locale)", locale: /en|mm/ do
|
|||||||
|
|
||||||
resources :cash_ins, only: [:new, :create]
|
resources :cash_ins, only: [:new, :create]
|
||||||
resources :cash_outs, only: [:new, :create]
|
resources :cash_outs, only: [:new, :create]
|
||||||
root "home#index"
|
|
||||||
get "table/:dining_id" => "home#show" do #origami/:booking_id will show
|
get "table/:dining_id" => "home#show" do #origami/:booking_id will show
|
||||||
# resources :discounts, only: [:index,:new, :create ] #add discount type
|
# resources :discounts, only: [:index,:new, :create ] #add discount type
|
||||||
resources :customers #add customer type
|
resources :customers #add customer type
|
||||||
|
|||||||
Reference in New Issue
Block a user