check booking in movetable
This commit is contained in:
@@ -94,12 +94,14 @@
|
|||||||
<% else %>
|
<% else %>
|
||||||
<div id="save_order_id" data-order="">
|
<div id="save_order_id" data-order="">
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if !@booking.nil? %>
|
||||||
<strong id="order-title">ORDER DETAILS </strong> | Table <%= @dining.name rescue "" %>
|
<strong id="order-title">ORDER DETAILS </strong> | Table <%= @dining.name rescue "" %>
|
||||||
<% if @booking.checkout_by.nil? && !@booking.reserved_by.nil? %>
|
<% if @booking.checkout_by.nil? && !@booking.reserved_by.nil? %>
|
||||||
<span class="float-right"><%= @booking.checkin_at.utc.getlocal.strftime("%I:%M %p") %> - <%= @booking.checkout_at.utc.getlocal.strftime("%I:%M %p") %></span>
|
<span class="float-right"><%= @booking.checkin_at.utc.getlocal.strftime("%I:%M %p") %> - <%= @booking.checkout_at.utc.getlocal.strftime("%I:%M %p") %></span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<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 %>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<% elsif @status_sale == 'sale' %>
|
<% elsif @status_sale == 'sale' %>
|
||||||
<div><strong id="order-title">INVOICE DETAILS </strong> | Table <%= @dining.name rescue "" %>
|
<div><strong id="order-title">INVOICE DETAILS </strong> | Table <%= @dining.name rescue "" %>
|
||||||
@@ -149,10 +151,10 @@
|
|||||||
<div class="row p-l-5 p-r-5">
|
<div class="row 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' && !@sale_array.empty? %>
|
||||||
<p class="hidden customer-id"><%= @sale_array[0].customer_id rescue '' %></p>
|
<p class="hidden customer-id"><%= @sale_array[0].customer_id rescue '' %></p>
|
||||||
Customer : <%= @sale_array[0].customer.name rescue '' %>
|
Customer : <%= @sale_array[0].customer.name rescue '' %>
|
||||||
<% elsif @status_order == 'order'
|
<% elsif @status_order == 'order' && !@customer.nil?
|
||||||
%>
|
%>
|
||||||
<p class="hidden customer-id"><%= @customer.customer_id rescue "" %></p>
|
<p class="hidden customer-id"><%= @customer.customer_id rescue "" %></p>
|
||||||
Customer : <%= @customer.name rescue "" %>
|
Customer : <%= @customer.name rescue "" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user