logger for receipt bill
This commit is contained in:
@@ -513,6 +513,7 @@ function callback_url(callback,ref_no,order_id,status,min_type,time,exptime,reas
|
||||
data: {order_id: order_id, ref_no: ref_no, status: status, min_type: min_type, expected_time: waiting_time, remark: reason, access_code: access_code},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
console.log(data);
|
||||
if (data.status) {
|
||||
if(status != "completed"){
|
||||
swal({
|
||||
|
||||
@@ -114,7 +114,7 @@ class Origami::OrderReservationController < BaseOrigamiController
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Rails.logger.debug "@@@@ receiptbill checked ::" + status
|
||||
return status
|
||||
end
|
||||
|
||||
|
||||
@@ -174,7 +174,7 @@ class OrderReservation < ApplicationRecord
|
||||
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)
|
||||
|
||||
Rails.logger.debug "@@@@ receipt_bill :: " + receipt_bill
|
||||
if receipt_bill == 1
|
||||
#receipt bill pdf setting
|
||||
# get printer info
|
||||
|
||||
Reference in New Issue
Block a user