diff --git a/app/views/origami/sales/show.html.erb b/app/views/origami/sales/show.html.erb index dda2bbc8..c1dba351 100755 --- a/app/views/origami/sales/show.html.erb +++ b/app/views/origami/sales/show.html.erb @@ -39,24 +39,49 @@
<% @tables.each do |table| %> - <% if table.status == 'occupied' %> -
-
- <%= table.name %> + <% if table.status == 'occupied' %> <% if table.get_booking.nil? %> - billed - <% else %> - new + <% if table.get_checkout_booking.nil? %> +
+ <% else %> +
+ <% end %> +
+ <%= table.name %> + + billed +
+
+
+ <% else %> + <% if table.get_checkout_booking.nil? %> +
+ <% else %> +
+ <% end %> +
+ <%= table.name %> + + new +
+
<% end %> -
-
- <% else %> -
-
- <%= table.name %> -
-
- <% end %> + <% else %> +
+
+ <%= table.name %> + new +
+
+ <% end %> <% end %>
@@ -65,24 +90,40 @@
<% @rooms.each do |room| %> - <% if room.status == 'occupied' %> -
-
- <%= room.name %> - <% if room.get_booking.nil? %> - billed - <% else %> - new + <% if room.status == 'occupied' %> + <% if room.get_booking.nil? %> +
+
+ <%= room.name %> + + billed +
+
+ <% else %> +
+
+ <%= room.name %> + + new +
+
<% end %> -
-
- <% else %> -
-
- <%= room.name %> -
-
- <% end %> + <% else %> +
+
+ <%= room.name %> + +
+
+ <% end %> <% end %>