diff --git a/app/controllers/crm/customers_controller.rb b/app/controllers/crm/customers_controller.rb index 4606b049..e74f9c7a 100644 --- a/app/controllers/crm/customers_controller.rb +++ b/app/controllers/crm/customers_controller.rb @@ -115,7 +115,7 @@ class Crm::CustomersController < BaseCrmController 'Content-Type' => 'application/json', 'Accept' => 'application/json' }, - :timeout => 100 + :timeout => 10 ) rescue HTTParty::Error @@ -209,8 +209,6 @@ end }, :timeout => 10 ) - puts "hhhhhhhhh" - puts response.to_json rescue Net::OpenTimeout response = { status: false } diff --git a/app/controllers/origami/payments_controller.rb b/app/controllers/origami/payments_controller.rb index 03e0931e..de1af386 100644 --- a/app/controllers/origami/payments_controller.rb +++ b/app/controllers/origami/payments_controller.rb @@ -55,6 +55,10 @@ class Origami::PaymentsController < BaseOrigamiController shop_details = Shop.find(1) # get member information member_info = Customer.get_member_account(customer) + puts "transaction" + puts rebate_amount.to_json + puts "member_info" + puts member_info.to_json # get printer info print_settings=PrintSetting.find_by_unique_code(unique_code) diff --git a/app/controllers/origami/rooms_controller.rb b/app/controllers/origami/rooms_controller.rb index c25e0e1f..e5728f99 100644 --- a/app/controllers/origami/rooms_controller.rb +++ b/app/controllers/origami/rooms_controller.rb @@ -6,6 +6,7 @@ class Origami::RoomsController < BaseOrigamiController @complete = Sale.all @orders = Order.all.order('date desc') @room = DiningFacility.find(params[:room_id]) + @sale_array = Array.new @room.bookings.each do |booking| if booking.sale_id.nil? @order_items = Array.new @@ -23,12 +24,16 @@ class Origami::RoomsController < BaseOrigamiController sale = Sale.find(booking.sale_id) if sale.sale_status != "completed" + @sale_array.push(sale) @status = 'sale' @obj = sale @customer = sale.customer end end end + puts "hhhhhhhhhh" + puts @status + puts @obj.to_json end diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb index 1329bc8d..e968c34a 100644 --- a/app/views/origami/rooms/show.html.erb +++ b/app/views/origami/rooms/show.html.erb @@ -69,16 +69,23 @@