update order reservation

This commit is contained in:
Aung Myo
2018-04-18 17:55:32 +06:30
parent 2a26abff9a
commit a5cb5a67f4
2 changed files with 5 additions and 4 deletions

View File

@@ -50,9 +50,10 @@ class Origami::OrderReservationController < BaseOrigamiController
status = params[:status]
end
response = OrderReservation.send_status_to_ordering(params[:url],params[:ref_no],status)
# response = OrderReservation.send_status_to_ordering(params[:url],params[:ref_no],status)
render :json => response
result = {:status=> true, :message => " accepted !" }
render :json => result.to_json
end
end

View File

@@ -92,7 +92,7 @@ class OrderReservation < ApplicationRecord
@status, @sale = Sale.request_bill(@order,current_user,current_user)
#order status send to doemal
callback_response = send_status_to_ordering(order.callback_url,order.transaction_ref,SEND_TO_KITCHEN)
# callback_response = send_status_to_ordering(order.callback_url,order.transaction_ref,SEND_TO_KITCHEN)
#order reservation status updated
update_order_reservation(order.id, @sale.sale_id, SEND_TO_KITCHEN)
@@ -123,7 +123,7 @@ class OrderReservation < ApplicationRecord
sale_payment.process_payment(saleObj, current_user.name, saleObj.grand_total, "cash")
#order status send to doemal
callback_response = send_status_to_ordering(order.callback_url,order.transaction_ref,DELIVERED)
# callback_response = send_status_to_ordering(order.callback_url,order.transaction_ref,DELIVERED)
#order reservation status updated
update_order_reservation(order.id, saleObj.sale_id, DELIVERED)