update order reservation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user