"
+"

"
@@ -434,7 +438,8 @@ $(function() {
change_qty_plus_minus("count","plus","minus");
- data = $(this).parent().children().children('.add_icon');
+ // data = $(this).parent().children().children('.add_icon');
+ data = $(this).parent().siblings('.add_icon');
$('#total_price').text(data.attr('data-price'));
attributes = $(this).data('id');
diff --git a/app/models/sale.rb b/app/models/sale.rb
index 680f37b6..8979f452 100755
--- a/app/models/sale.rb
+++ b/app/models/sale.rb
@@ -1226,9 +1226,10 @@ end
end
def self.add_to_existing_pending_invoice(dining,sale_id,booking)
- table = DiningFacility.find(dining)
+
existing_booking = Booking.find_by_sale_id(sale_id)
if dining.to_i > 0
+ table = DiningFacility.find(dining)
table.bookings.each do |booking|
# if !booking.checkout_at.nil?
# existing_booking.update_attributes(checkout_at: checkout_at)
diff --git a/app/views/origami/addorders/detail.html.erb b/app/views/origami/addorders/detail.html.erb
index 7c8d0324..36f45b74 100755
--- a/app/views/origami/addorders/detail.html.erb
+++ b/app/views/origami/addorders/detail.html.erb
@@ -65,15 +65,28 @@
-
- <% if type %>
-
- <% end%>
+
+ <% if type && modify_order%>
+
+
+ <%elsif !modify_order && type%>
+
+
+
Select
+
+ <%else%>
+
+ <%end%>
<% else %>
@@ -123,23 +140,28 @@