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},
|
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",
|
dataType: "json",
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
console.log(data);
|
||||||
if (data.status) {
|
if (data.status) {
|
||||||
if(status != "completed"){
|
if(status != "completed"){
|
||||||
swal({
|
swal({
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ class Origami::OrderReservationController < BaseOrigamiController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Rails.logger.debug "@@@@ receiptbill checked ::" + status
|
||||||
return status
|
return status
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class OrderReservation < ApplicationRecord
|
|||||||
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
|
#order reservation status updated
|
||||||
update_order_reservation(order.id, saleObj.sale_id, DELIVERED)
|
update_order_reservation(order.id, saleObj.sale_id, DELIVERED)
|
||||||
|
Rails.logger.debug "@@@@ receipt_bill :: " + receipt_bill
|
||||||
if receipt_bill == 1
|
if receipt_bill == 1
|
||||||
#receipt bill pdf setting
|
#receipt bill pdf setting
|
||||||
# get printer info
|
# get printer info
|
||||||
|
|||||||
Reference in New Issue
Block a user