multiple sale and order
This commit is contained in:
@@ -22,27 +22,19 @@ class Api::OrdersController < Api::ApiController
|
|||||||
|
|
||||||
if booking
|
if booking
|
||||||
if booking.dining_facility_id.to_i == table_id.to_i
|
if booking.dining_facility_id.to_i == table_id.to_i
|
||||||
|
if booking.booking_status == 'assign'
|
||||||
|
if booking.sale_id.nil?
|
||||||
@booking = booking
|
@booking = booking
|
||||||
else
|
|
||||||
table = DiningFacility.find(table_id)
|
|
||||||
booking = table.get_current_booking
|
|
||||||
if booking
|
|
||||||
if booking.dining_facility_id.to_i == table_id.to_i
|
|
||||||
@booking = booking
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
puts "only table"
|
|
||||||
table = DiningFacility.find(table_id)
|
table = DiningFacility.find(table_id)
|
||||||
booking = table.get_current_booking
|
@booking = table.get_booking
|
||||||
puts booking
|
|
||||||
if booking
|
|
||||||
if booking.dining_facility_id.to_i == table_id.to_i
|
|
||||||
@booking = booking
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
else
|
||||||
|
table = DiningFacility.find(table_id)
|
||||||
|
@booking = table.get_booking
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -73,54 +65,47 @@ class Api::OrdersController < Api::ApiController
|
|||||||
# check booking id is already completed.
|
# check booking id is already completed.
|
||||||
booking = Booking.find(params[:booking_id])
|
booking = Booking.find(params[:booking_id])
|
||||||
if booking
|
if booking
|
||||||
if booking.dining_facility_id.to_i == params[:table_id].to_i
|
if booking.dining_facility_id.to_i == params[:table_id].to_i && booking.booking_status != 'moved'
|
||||||
if !booking.sale_id.nil?
|
if !booking.sale_id.nil?
|
||||||
if booking.sale.sale_status == "completed" || booking.sale.sale_status == "billed"
|
check_order_with_booking(booking)
|
||||||
@order.new_booking = true
|
|
||||||
else
|
else
|
||||||
@order.new_booking = false
|
@order.new_booking = false
|
||||||
@order.booking_id = params[:booking_id]
|
@order.booking_id = params[:booking_id]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@order.new_booking = false
|
check_order_with_table(params[:table_id])
|
||||||
@order.booking_id = params[:booking_id]
|
|
||||||
puts "booking sale is null"
|
|
||||||
end
|
|
||||||
else
|
|
||||||
# booking.table id not equal current table
|
|
||||||
table = DiningFacility.find(params[:table_id])
|
|
||||||
if table
|
|
||||||
booking = table.get_current_booking
|
|
||||||
if booking
|
|
||||||
if booking.sale.sale_status == "completed" || booking.sale.sale_status == "billed"
|
|
||||||
@order.new_booking = true
|
|
||||||
else
|
|
||||||
@order.new_booking = false
|
|
||||||
@order.booking_id = booking.booking_id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end #booking exists
|
end #booking exists
|
||||||
else
|
else
|
||||||
#no booking id
|
check_order_with_table(params[:table_id])
|
||||||
table = DiningFacility.find(params[:table_id])
|
|
||||||
if table
|
|
||||||
booking = table.get_current_booking
|
|
||||||
if booking
|
|
||||||
if booking.sale.sale_status == "completed" || booking.sale.sale_status == "billed"
|
|
||||||
@order.new_booking = true
|
|
||||||
else
|
|
||||||
@order.new_booking = false
|
|
||||||
@order.booking_id = booking.booking_id
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@status, @booking = @order.generate
|
@status, @booking = @order.generate
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def check_order_with_table(table_id)
|
||||||
|
table = DiningFacility.find(table_id)
|
||||||
|
if table
|
||||||
|
booking = table.get_current_booking
|
||||||
|
if booking
|
||||||
|
if booking.sale.sale_status == "completed" || booking.sale.sale_status == "billed"
|
||||||
|
@order.new_booking = true
|
||||||
|
else
|
||||||
|
@order.new_booking = false
|
||||||
|
@order.booking_id = booking.booking_id
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def check_order_with_booking(booking)
|
||||||
|
if booking.sale.sale_status == "completed" || booking.sale.sale_status == "billed"
|
||||||
|
@order.new_booking = true
|
||||||
|
else
|
||||||
|
@order.new_booking = false
|
||||||
|
@order.booking_id = params[:booking_id]
|
||||||
|
end
|
||||||
|
end
|
||||||
# Description
|
# Description
|
||||||
# This API - allow order to add new items to existing orders, does not allow you to remove confirm items
|
# This API - allow order to add new items to existing orders, does not allow you to remove confirm items
|
||||||
# Update customer info, Guest Info
|
# Update customer info, Guest Info
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ class Origami::HomeController < BaseOrigamiController
|
|||||||
def index
|
def index
|
||||||
@tables = Table.all.active.order('status desc')
|
@tables = Table.all.active.order('status desc')
|
||||||
@rooms = Room.all.active.order('status desc')
|
@rooms = Room.all.active.order('status desc')
|
||||||
@complete = Sale.complete_sale
|
@complete = Sale.all
|
||||||
@orders = Order.all.order('date desc')
|
@orders = Order.all.order('date desc')
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -12,13 +12,13 @@ class Origami::HomeController < BaseOrigamiController
|
|||||||
def show
|
def show
|
||||||
@tables = Table.all.active.order('status desc')
|
@tables = Table.all.active.order('status desc')
|
||||||
@rooms = Room.all.active.order('status desc')
|
@rooms = Room.all.active.order('status desc')
|
||||||
@complete = Sale.complete_sale
|
@complete = Sale.all
|
||||||
@orders = Order.all.order('date desc')
|
@orders = Order.all.order('date desc')
|
||||||
@status_order = ""
|
@status_order = ""
|
||||||
@status_sale = ""
|
@status_sale = ""
|
||||||
@sale_array = Array.new
|
@sale_array = Array.new
|
||||||
@dining.bookings.each do |booking|
|
@dining.bookings.active.each do |booking|
|
||||||
if booking.sale_id.nil?
|
if booking.sale_id.nil? && booking.booking_status != 'moved'
|
||||||
@order_items = Array.new
|
@order_items = Array.new
|
||||||
booking.booking_orders.each do |booking_order|
|
booking.booking_orders.each do |booking_order|
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ class Origami::OrdersController < BaseOrigamiController
|
|||||||
def show
|
def show
|
||||||
@tables = Table.all.active.order('status desc')
|
@tables = Table.all.active.order('status desc')
|
||||||
@rooms = Room.all.active.order('status desc')
|
@rooms = Room.all.active.order('status desc')
|
||||||
@complete = Sale.complete_sale
|
@complete = Sale.all
|
||||||
@orders = Order.all.order('status desc')
|
@orders = Order.all.order('status desc')
|
||||||
@order = Order.find(params[:order_id])
|
@order = Order.find(params[:order_id])
|
||||||
sale_order = SaleOrder.find_by_order_id(@order.order_id)
|
sale_order = SaleOrder.find_by_order_id(@order.order_id)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ class Origami::RoomsController < BaseOrigamiController
|
|||||||
def show
|
def show
|
||||||
@tables = Table.all.active.order('status desc')
|
@tables = Table.all.active.order('status desc')
|
||||||
@rooms = Room.all.active.order('status desc')
|
@rooms = Room.all.active.order('status desc')
|
||||||
@complete = Sale.complete_sale
|
@complete = Sale.all
|
||||||
@orders = Order.all.order('date desc')
|
@orders = Order.all.order('date desc')
|
||||||
@room = DiningFacility.find(params[:room_id])
|
@room = DiningFacility.find(params[:room_id])
|
||||||
@room.bookings.each do |booking|
|
@room.bookings.each do |booking|
|
||||||
|
|||||||
@@ -3,8 +3,42 @@ class Origami::SalesController < BaseOrigamiController
|
|||||||
def show
|
def show
|
||||||
@tables = Table.all.active.order('status desc')
|
@tables = Table.all.active.order('status desc')
|
||||||
@rooms = Room.all.active.order('status desc')
|
@rooms = Room.all.active.order('status desc')
|
||||||
@complete = Sale.complete_sale
|
@complete = Sale.all
|
||||||
@orders = Order.all.order('date desc')
|
@orders = Order.all.order('date desc')
|
||||||
@sale = Sale.find(params[:sale_id])
|
@sale = Sale.find(params[:sale_id])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def add_to_existing_invoice
|
||||||
|
dining = params[:dining_id]
|
||||||
|
sale_id = params[:sale_id]
|
||||||
|
table = DiningFacility.find(dining)
|
||||||
|
table.bookings.each do |booking|
|
||||||
|
if booking.sale_id.nil?
|
||||||
|
booking.booking_orders.each do |booking_order|
|
||||||
|
booking.booking_status = 'moved'
|
||||||
|
order = Order.find(booking_order.order_id)
|
||||||
|
order.status = 'billed'
|
||||||
|
order.order_items.each do |item|
|
||||||
|
item.order_item_status = 'billed'
|
||||||
|
end
|
||||||
|
# create sale item
|
||||||
|
saleobj = Sale.find(sale_id)
|
||||||
|
order.order_items.each do |orer_item|
|
||||||
|
saleobj.add_item (orer_item)
|
||||||
|
end
|
||||||
|
saleobj.save
|
||||||
|
order.save
|
||||||
|
booking.save
|
||||||
|
end
|
||||||
|
existing_booking = Booking.find_by_sale_id(sale_id)
|
||||||
|
booking_order = BookingOrder.where('booking_id=?',booking)
|
||||||
|
booking_order.each do |bo|
|
||||||
|
bo.booking_id = existing_booking.booking_id
|
||||||
|
bo.save
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ class Booking < ApplicationRecord
|
|||||||
belongs_to :sale, :optional => true
|
belongs_to :sale, :optional => true
|
||||||
has_many :booking_orders
|
has_many :booking_orders
|
||||||
has_many :orders, :through => :booking_orders
|
has_many :orders, :through => :booking_orders
|
||||||
|
scope :active, -> {where("booking_status != 'moved'")}
|
||||||
|
|
||||||
def self.update_dining_facility(booking_arr, newd, old)
|
def self.update_dining_facility(booking_arr, newd, old)
|
||||||
booking_arr.each do |booking|
|
booking_arr.each do |booking|
|
||||||
|
|||||||
@@ -18,6 +18,17 @@ class DiningFacility < ApplicationRecord
|
|||||||
self.save
|
self.save
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def get_booking
|
||||||
|
booking = self.get_current_booking
|
||||||
|
if booking
|
||||||
|
if booking.dining_facility_id.to_i == self.id
|
||||||
|
if booking.booking_status == 'assign'
|
||||||
|
return booking
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def get_current_booking
|
def get_current_booking
|
||||||
booking = Booking.where("dining_facility_id = #{self.id} and booking_status ='assign' and checkin_at between '#{DateTime.now.utc - 5.hours}' and '#{DateTime.now.utc}' and checkout_at is null").limit(1)
|
booking = Booking.where("dining_facility_id = #{self.id} and booking_status ='assign' and checkin_at between '#{DateTime.now.utc - 5.hours}' and '#{DateTime.now.utc}' and checkout_at is null").limit(1)
|
||||||
|
|
||||||
|
|||||||
@@ -244,10 +244,12 @@ class SalePayment < ApplicationRecord
|
|||||||
table = DiningFacility.find(booking.dining_facility_id)
|
table = DiningFacility.find(booking.dining_facility_id)
|
||||||
bookings = table.bookings
|
bookings = table.bookings
|
||||||
bookings.each do |tablebooking|
|
bookings.each do |tablebooking|
|
||||||
|
if tablebooking.booking_status != 'moved'
|
||||||
if tablebooking.sale.sale_status != 'completed'
|
if tablebooking.sale.sale_status != 'completed'
|
||||||
status = false
|
status = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
if status
|
if status
|
||||||
table.status = "available"
|
table.status = "available"
|
||||||
table.save
|
table.save
|
||||||
|
|||||||
@@ -137,7 +137,6 @@
|
|||||||
count = 0
|
count = 0
|
||||||
sub_total = 0
|
sub_total = 0
|
||||||
if @status_sale == "sale"
|
if @status_sale == "sale"
|
||||||
puts @sale_array[0]
|
|
||||||
@sale_array[0].sale_items.each do |sale_item|
|
@sale_array[0].sale_items.each do |sale_item|
|
||||||
count += 1
|
count += 1
|
||||||
sub_total = sub_total + sale_item.price
|
sub_total = sub_total + sale_item.price
|
||||||
@@ -159,8 +158,6 @@
|
|||||||
unless @order_items.nil?
|
unless @order_items.nil?
|
||||||
count = 0
|
count = 0
|
||||||
@order_items.each do |order_item |
|
@order_items.each do |order_item |
|
||||||
puts @order_items.size
|
|
||||||
puts "view"
|
|
||||||
count += 1
|
count += 1
|
||||||
sub_total = sub_total + order_item.price
|
sub_total = sub_total + order_item.price
|
||||||
|
|
||||||
@@ -212,10 +209,13 @@
|
|||||||
Pending New Order
|
Pending New Order
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<%
|
<%
|
||||||
|
count = 0
|
||||||
@order_items.each do |order_item |
|
@order_items.each do |order_item |
|
||||||
|
count += 1
|
||||||
%>
|
%>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><%= count %>
|
||||||
<td class='item-name'><%= order_item.item_name %></td>
|
<td class='item-name'><%= order_item.item_name %></td>
|
||||||
<td class='item-attr'><%= order_item.qty %></td>
|
<td class='item-attr'><%= order_item.qty %></td>
|
||||||
<td class='item-attr'><%= order_item.qty*order_item.price %></td>
|
<td class='item-attr'><%= order_item.qty*order_item.price %></td>
|
||||||
@@ -225,14 +225,15 @@
|
|||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
</table>
|
</table>
|
||||||
<button class='btn btn-primary'> Add to existing invoice </button>
|
<button class='btn btn-primary' id='add_invoice'> Add to existing invoice </button>
|
||||||
<%
|
<%
|
||||||
else
|
end
|
||||||
@sale_array.each do |sale|
|
@sale_array.each do |sale|
|
||||||
if @sale_array.size > 1
|
if @sale_array.size > 1
|
||||||
unless sale.receipt_no == @sale_array[0].receipt_no
|
unless sale.receipt_no == @sale_array[0].receipt_no
|
||||||
%>
|
%>
|
||||||
Pending New Invoice
|
<br><br>
|
||||||
|
Pending Payment
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Receipt No - <%= sale.receipt_no %></td>
|
<td>Receipt No - <%= sale.receipt_no %></td>
|
||||||
@@ -244,7 +245,6 @@
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
%>
|
%>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -258,17 +258,23 @@
|
|||||||
<% if @dining.bookings.length >= 1 %>
|
<% if @dining.bookings.length >= 1 %>
|
||||||
<button type="button" class="btn btn-primary btn-block" disabled>Add Order</button>
|
<button type="button" class="btn btn-primary btn-block" disabled>Add Order</button>
|
||||||
<button type="button" class="btn btn-primary btn-block" disabled>Edit</button>
|
<button type="button" class="btn btn-primary btn-block" disabled>Edit</button>
|
||||||
<button type="button" class="btn btn-primary btn-block" id='move'>Move</button>
|
|
||||||
<button type="button" id="customer" class="btn btn-primary btn-block" >Customer</button>
|
<button type="button" id="customer" class="btn btn-primary btn-block" >Customer</button>
|
||||||
<% if @status_order == 'order' %>
|
<button type="button" id="discount" class="btn btn-primary btn-block" >Discount</button>
|
||||||
|
<% if @status_order == 'order' && @status_sale != 'sale' %>
|
||||||
|
<button type="button" class="btn btn-primary btn-block" id='move'>Move</button>
|
||||||
<button type="button" id="request_bills" class="btn btn-primary btn-block">Req.Bill</button>
|
<button type="button" id="request_bills" class="btn btn-primary btn-block">Req.Bill</button>
|
||||||
<button type="button" id="pay" class="btn btn-primary btn-block" disabled>Pay</button>
|
<button type="button" id="pay" class="btn btn-primary btn-block" disabled>Pay</button>
|
||||||
|
<button type="button" class="btn btn-primary btn-block" disabled=""> Void </button>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
<button type="button" class="btn btn-primary btn-block" id='move' disabled="">Move</button>
|
||||||
<button type="button" id="request_bills" class="btn btn-primary btn-block" disabled> Req.Bill</button>
|
<button type="button" id="request_bills" class="btn btn-primary btn-block" disabled> Req.Bill</button>
|
||||||
<button type="button" id="pay" class="btn btn-primary btn-block">Pay</button>
|
<button type="button" id="pay" class="btn btn-primary btn-block">Pay</button>
|
||||||
|
<button type="button" class="btn btn-primary btn-block" > Void </button>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<!-- Cashier Buttons -->
|
<!-- Cashier Buttons -->
|
||||||
<button type="button" id="discount" class="btn btn-primary btn-block" >Discount</button>
|
|
||||||
<button type="button" id="re-print" class="btn btn-primary btn-block" >Re.Print</button>
|
<button type="button" id="re-print" class="btn btn-primary btn-block" >Re.Print</button>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
@@ -319,4 +325,19 @@ $('#move').on('click',function(){
|
|||||||
$('#back').on('click',function(){
|
$('#back').on('click',function(){
|
||||||
window.location.href = '/origami/';
|
window.location.href = '/origami/';
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$('#add_invoice').on('click',function(){
|
||||||
|
var dining_id = "<%= @dining.id %>"
|
||||||
|
var sale_id = "<%= @obj_sale.sale_id rescue "" %>"
|
||||||
|
var ajax_url = "/origami/sale/append_order";
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: ajax_url,
|
||||||
|
data: 'dining_id='+ dining_id + "&sale_id=" + sale_id,
|
||||||
|
success:function(result){
|
||||||
|
alert("Invoice updated")
|
||||||
|
window.location.reload();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -180,7 +180,7 @@
|
|||||||
if @sale_array.size > 1
|
if @sale_array.size > 1
|
||||||
unless sale.receipt_no == @sale_array[0].receipt_no
|
unless sale.receipt_no == @sale_array[0].receipt_no
|
||||||
%>
|
%>
|
||||||
Pending New Invoice
|
Pending Payment
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<td>Receipt No - <%= sale.receipt_no %></td>
|
<td>Receipt No - <%= sale.receipt_no %></td>
|
||||||
|
|||||||
@@ -24,7 +24,8 @@
|
|||||||
<table >
|
<table >
|
||||||
<!-- <thead> -->
|
<!-- <thead> -->
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width:80%;">Items</th>
|
<th style="width:5%">#</th>
|
||||||
|
<th style="width:76%;">Items</th>
|
||||||
<th style="width:20%;">QTY</td>
|
<th style="width:20%;">QTY</td>
|
||||||
<th style="width:20%;">Price</td>
|
<th style="width:20%;">Price</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -34,10 +35,16 @@
|
|||||||
<div id="table-details" class="card-text" style="min-height:400px; max-height:400px; overflow-x:scroll">
|
<div id="table-details" class="card-text" style="min-height:400px; max-height:400px; overflow-x:scroll">
|
||||||
<table class="table" id="append-table">
|
<table class="table" id="append-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
<% sub_total = 0 %>
|
<% sub_total = 0
|
||||||
<% @sale_data.sale_items.each do |sale_item| %>
|
count = 0
|
||||||
|
%>
|
||||||
|
<% @sale_data.sale_items.each do |sale_item|
|
||||||
|
count += 1
|
||||||
|
%>
|
||||||
|
|
||||||
<% sub_total += sale_item.qty*sale_item.unit_price%>
|
<% sub_total += sale_item.qty*sale_item.unit_price%>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><%= count %></td>
|
||||||
<td style="width:60%; text-align:left">
|
<td style="width:60%; text-align:left">
|
||||||
<span id="item-name-price"><%=sale_item.product_name%>@<%=sale_item.unit_price%></span>
|
<span id="item-name-price"><%=sale_item.product_name%>@<%=sale_item.unit_price%></span>
|
||||||
</td>
|
</td>
|
||||||
@@ -236,7 +243,6 @@
|
|||||||
<!-- Waiter Buttons -->
|
<!-- Waiter Buttons -->
|
||||||
<button type="button" class="btn btn-primary btn-block" onclick="localStorage.removeItem('cash');window.location.href = '/origami';"> Back </button>
|
<button type="button" class="btn btn-primary btn-block" onclick="localStorage.removeItem('cash');window.location.href = '/origami';"> Back </button>
|
||||||
<button type="button" class="btn btn-primary btn-block"> FOC </button>
|
<button type="button" class="btn btn-primary btn-block"> FOC </button>
|
||||||
<button type="button" class="btn btn-primary btn-block"> Void </button>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
json.status true
|
||||||
@@ -80,6 +80,7 @@ Rails.application.routes.draw do
|
|||||||
get 'table/:dining_id/movetable' => "movetable#move_dining"
|
get 'table/:dining_id/movetable' => "movetable#move_dining"
|
||||||
get 'table/:dining_id/moveroom' => "moveroom#move_dining"
|
get 'table/:dining_id/moveroom' => "moveroom#move_dining"
|
||||||
get 'sale/:sale_id' => 'sales#show'
|
get 'sale/:sale_id' => 'sales#show'
|
||||||
|
post 'sale/append_order' => 'sales#add_to_existing_invoice'
|
||||||
get 'room/:room_id' => 'rooms#show'
|
get 'room/:room_id' => 'rooms#show'
|
||||||
get 'order/:order_id' => "orders#show"
|
get 'order/:order_id' => "orders#show"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user