From c71ece4327139a33eea47042013463b607362551 Mon Sep 17 00:00:00 2001 From: phyusin Date: Wed, 7 Feb 2018 15:58:19 +0630 Subject: [PATCH] change sale id for add to existing in room --- app/views/origami/rooms/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb index b0568a34..c32bfe86 100755 --- a/app/views/origami/rooms/show.html.erb +++ b/app/views/origami/rooms/show.html.erb @@ -746,7 +746,7 @@ $('#back').on('click',function(){ $('#add_invoice').on('click',function(){ var dining_id = "<%= @room.id %>" - var sale_id = "<%= @obj_sale.sale_id rescue "" %>" + var sale_id = $("#sale_id").val(); //<%= @obj_sale.sale_id rescue "" %> var ajax_url = "/origami/sale/append_order"; $.ajax({ type: "POST",