Update
This commit is contained in:
@@ -82,10 +82,10 @@
|
|||||||
|
|
||||||
<!--- Panel 1 - Table Orders -->
|
<!--- Panel 1 - Table Orders -->
|
||||||
<div class="tab-pane active" id="tables" role="tabpanel">
|
<div class="tab-pane active" id="tables" role="tabpanel">
|
||||||
<div class="card-columns" style="padding-top:10px; column-gap: 1.2rem;">
|
<div class="card-columns" style="padding-top:10px; column-gap: 1.2rem;">
|
||||||
<%
|
<%
|
||||||
@booking_orders.each do |bko|
|
@booking_orders.each do |bko|
|
||||||
# No Show completed
|
# No Show completed
|
||||||
if bko.sale_status == 'completed'
|
if bko.sale_status == 'completed'
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
<div class="card-columns" style="padding-top:10px; column-gap: 1.2rem;">
|
<div class="card-columns" style="padding-top:10px; column-gap: 1.2rem;">
|
||||||
<%
|
<%
|
||||||
@booking_rooms.each do |rmo|
|
@booking_rooms.each do |rmo|
|
||||||
# No Show completed
|
# No Show completed
|
||||||
if rmo.sale_status == 'completed'
|
if rmo.sale_status == 'completed'
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
@@ -207,8 +207,8 @@
|
|||||||
<div class="tab-pane" id="orders" role="tabpanel">
|
<div class="tab-pane" id="orders" role="tabpanel">
|
||||||
<div class="card-columns" style="padding-top:10px; column-gap: 1.2rem;">
|
<div class="card-columns" style="padding-top:10px; column-gap: 1.2rem;">
|
||||||
<%
|
<%
|
||||||
@orders.each do |odr|
|
@orders.each do |odr|
|
||||||
# No Show completed
|
# No Show completed
|
||||||
if odr.sale_status == 'completed'
|
if odr.sale_status == 'completed'
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
@@ -289,7 +289,7 @@
|
|||||||
<p>Customer : <span id="customer_name"></span></p>
|
<p>Customer : <span id="customer_name"></span></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="card-text">
|
<div class="card-text">
|
||||||
<table class="table table-striped" id="order-items-table">
|
<table class="table table-striped" id="order-items-table">
|
||||||
@@ -300,14 +300,14 @@
|
|||||||
<th class="item-attr">Price</td>
|
<th class="item-attr">Price</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<%
|
<%
|
||||||
# For Sale Items
|
# For Sale Items
|
||||||
sub_total = 0
|
sub_total = 0
|
||||||
if @selected_item_type == "Sale"
|
if @selected_item_type == "Sale"
|
||||||
@selected_item.sale_items.each do |sale_item|
|
@selected_item.sale_items.each do |sale_item|
|
||||||
sub_total += (sale_item.qty*sale_item.unit_price)
|
sub_total += (sale_item.qty*sale_item.unit_price)
|
||||||
%>
|
%>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='item-name'><%= sale_item.product_name %></td>
|
<td class='item-name'><%= sale_item.product_name %></td>
|
||||||
<td class='item-attr'><%= sale_item.qty %></td>
|
<td class='item-attr'><%= sale_item.qty %></td>
|
||||||
@@ -319,7 +319,7 @@
|
|||||||
%>
|
%>
|
||||||
|
|
||||||
<%
|
<%
|
||||||
# For Order Items
|
# For Order Items
|
||||||
if @selected_item_type == "Order"
|
if @selected_item_type == "Order"
|
||||||
@selected_item.order_items.each do |order_item|
|
@selected_item.order_items.each do |order_item|
|
||||||
sub_total += (order_item.qty*order_item.unit_price)
|
sub_total += (order_item.qty*order_item.unit_price)
|
||||||
@@ -363,7 +363,7 @@
|
|||||||
<td class="item-attr"><strong id="order-grand-total"><%=@selected_item.grand_total rescue 0%></strong></td>
|
<td class="item-attr"><strong id="order-grand-total"><%=@selected_item.grand_total rescue 0%></strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="rebate_amount">
|
<tr class="rebate_amount">
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace :clear do
|
|||||||
Sale.delete_all
|
Sale.delete_all
|
||||||
SaleAudit.delete_all
|
SaleAudit.delete_all
|
||||||
SalePayment.delete_all
|
SalePayment.delete_all
|
||||||
|
DiningFacility.update_all(status:'available')
|
||||||
puts "Clear Data Done."
|
puts "Clear Data Done."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user