fixed receipt bill pdf with action cable
This commit is contained in:
@@ -132,14 +132,6 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
# For Print
|
|
||||||
# if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
|
||||||
if Lookup.collection_of("print_settings").any? { |x| x == ["ReceiptBillA5Pdf", "1"] } #print_settings with name:ReceiptBillA5Pdf
|
|
||||||
unique_code = "ReceiptBillA5Pdf"
|
|
||||||
else
|
|
||||||
unique_code = PrintSetting.where("unique_code REGEXP ?", "receipt.*bill.*pdf").first.unique_code
|
|
||||||
end
|
|
||||||
|
|
||||||
customer = saleObj.customer
|
customer = saleObj.customer
|
||||||
|
|
||||||
# get member information
|
# get member information
|
||||||
@@ -197,12 +189,17 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
card_balance_amount = SaleAudit.getCardBalanceAmount(sale_id)
|
card_balance_amount = SaleAudit.getCardBalanceAmount(sale_id)
|
||||||
|
|
||||||
# get printer info
|
# get printer info
|
||||||
print_settings = PrintSetting.find_by_unique_code(unique_code)
|
if type.strip.downcase == 'doemal_order'
|
||||||
|
print_settings = PrintSetting.where(unique_code: 'ReceiptBillOrderPdf').first
|
||||||
|
else
|
||||||
|
print_settings = PrintSetting.where("unique_code REGEXP ?", "receipt.*bill.*pdf").first
|
||||||
|
end
|
||||||
# Calculate Food and Beverage Total
|
# Calculate Food and Beverage Total
|
||||||
item_price_by_accounts = SaleItem.calculate_price_by_accounts(saleObj.sale_items)
|
item_price_by_accounts = SaleItem.calculate_price_by_accounts(saleObj.sale_items)
|
||||||
discount_price_by_accounts = SaleItem.get_discount_price_by_accounts(saleObj.sale_items)
|
discount_price_by_accounts = SaleItem.get_discount_price_by_accounts(saleObj.sale_items)
|
||||||
other_amount = SaleItem.calculate_other_charges(sale_items)
|
other_amount = SaleItem.calculate_other_charges(sale_items)
|
||||||
credit_pdf = Lookup.find_by_lookup_type("credit_pdf")
|
credit_pdf = Lookup.find_by_lookup_type("credit_pdf")
|
||||||
|
|
||||||
if (path.include? ("credit_payment")) && !credit_pdf.nil? && credit_pdf.value.to_i == 1
|
if (path.include? ("credit_payment")) && !credit_pdf.nil? && credit_pdf.value.to_i == 1
|
||||||
printed_status = 'credit_payment'
|
printed_status = 'credit_payment'
|
||||||
else
|
else
|
||||||
@@ -211,13 +208,10 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
|
|
||||||
printer = Printer::ReceiptPrinter.new(print_settings)
|
printer = Printer::ReceiptPrinter.new(print_settings)
|
||||||
filename, sale_receipt_no, printer_name = printer.print_receipt_bill(print_settings, false, nil, cashier_terminal,sale_items,saleObj,customer.name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_detail, printed_status,current_balance,card_data,other_amount,latest_order_no,card_balance_amount,nil)
|
filename, sale_receipt_no, printer_name = printer.print_receipt_bill(print_settings, false, nil, cashier_terminal,sale_items,saleObj,customer.name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_detail, printed_status,current_balance,card_data,other_amount,latest_order_no,card_balance_amount,nil)
|
||||||
|
# if !saleObj.nil?
|
||||||
#end
|
# InventoryJob.perform_now(self.id)
|
||||||
|
# InventoryDefinition.calculate_product_count(saleObj)
|
||||||
if !saleObj.nil?
|
# end
|
||||||
# InventoryJob.perform_now(self.id)
|
|
||||||
# InventoryDefinition.calculate_product_count(saleObj)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# status, filename, sale_receipt_no, printer_name = Payment.pay(getCloudDomain, cash, sale_id, member_info, type, tax_type, path, latest_order_no, shop_detail, current_user, nil, nil)
|
# status, filename, sale_receipt_no, printer_name = Payment.pay(getCloudDomain, cash, sale_id, member_info, type, tax_type, path, latest_order_no, shop_detail, current_user, nil, nil)
|
||||||
@@ -610,32 +604,11 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
cashier_type = params[:type]
|
cashier_type = params[:type]
|
||||||
|
|
||||||
if cashier_type.strip.downcase == "doemal_order"
|
if cashier_type.strip.downcase == "doemal_order"
|
||||||
unique_code = "ReceiptBillOrderPdf"
|
print_settings = PrintSetting.where(unique_code: 'ReceiptBillOrderPdf').first
|
||||||
else
|
else
|
||||||
receipt_bill_a5_pdf = Lookup.collection_of("print_settings") #print_settings with name:ReceiptBillA5Pdf
|
print_settings = PrintSetting.where("unique_code REGEXP ?", "receipt.*bill.*pdf").first
|
||||||
unique_code = "ReceiptBillPdf"
|
|
||||||
print_settings = PrintSetting.all
|
|
||||||
if !print_settings.nil?
|
|
||||||
print_settings.each do |setting|
|
|
||||||
if setting.unique_code == 'ReceiptBillPdf'
|
|
||||||
unique_code = "ReceiptBillPdf"
|
|
||||||
elsif setting.unique_code == 'ReceiptBillStarPdf'
|
|
||||||
unique_code = "ReceiptBillStarPdf"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if !receipt_bill_a5_pdf.empty?
|
|
||||||
receipt_bill_a5_pdf.each do |receipt_bilA5|
|
|
||||||
if receipt_bilA5[0] == 'ReceiptBillA5Pdf'
|
|
||||||
if receipt_bilA5[1] == '1'
|
|
||||||
unique_code = "ReceiptBillA5Pdf"
|
|
||||||
# else
|
|
||||||
# unique_code = "ReceiptBillPdf"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# get printer info
|
# get printer info
|
||||||
print_settings = PrintSetting.find_by_unique_code(unique_code)
|
print_settings = PrintSetting.find_by_unique_code(unique_code)
|
||||||
printer = Printer::ReceiptPrinter.new(print_settings)
|
printer = Printer::ReceiptPrinter.new(print_settings)
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
|||||||
if ENV["SERVER_MODE"] != "cloud"
|
if ENV["SERVER_MODE"] != "cloud"
|
||||||
self.print(filename, oqs.printer_name)
|
self.print(filename, oqs.printer_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
return filename, order_id, oqs.printer_name
|
|
||||||
else
|
else
|
||||||
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
||||||
queue: oqs.station_name,
|
queue: oqs.station_name,
|
||||||
@@ -41,6 +39,8 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return filename, order_id, oqs.printer_name
|
||||||
end
|
end
|
||||||
|
|
||||||
# Query for per order
|
# Query for per order
|
||||||
@@ -71,8 +71,6 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
|||||||
if ENV["SERVER_MODE"] != "cloud"
|
if ENV["SERVER_MODE"] != "cloud"
|
||||||
self.print(filename, oqs.printer_name)
|
self.print(filename, oqs.printer_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
return filename, order_id, oqs.printer_name
|
|
||||||
else
|
else
|
||||||
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
||||||
queue: oqs.station_name,
|
queue: oqs.station_name,
|
||||||
@@ -87,6 +85,8 @@ class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return filename, order_id, oqs.printer_name
|
||||||
end
|
end
|
||||||
|
|
||||||
# Print for orders in booking
|
# Print for orders in booking
|
||||||
|
|||||||
@@ -42,17 +42,17 @@ class Printer::PrinterWorker
|
|||||||
end
|
end
|
||||||
|
|
||||||
def print(file_path, printer_destination = nil )
|
def print(file_path, printer_destination = nil )
|
||||||
# if printer_destination.nil?
|
if printer_destination.nil?
|
||||||
# printer_destination = self.printer_destination
|
printer_destination = self.printer_destination
|
||||||
# end
|
end
|
||||||
#
|
|
||||||
# copy = self.print_copies
|
copy = self.print_copies
|
||||||
# #Print only when printer information is not null
|
#Print only when printer information is not null
|
||||||
# if !self.printer_destination.nil?
|
if !self.printer_destination.nil?
|
||||||
# (1..copy).each do
|
(1..copy).each do
|
||||||
# page = Cups::PrintJob.new(file_path, printer_destination)
|
page = Cups::PrintJob.new(file_path, printer_destination)
|
||||||
# page.print
|
page.print
|
||||||
# end
|
end
|
||||||
# end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -95,82 +95,70 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
|
|||||||
#Use CUPS service
|
#Use CUPS service
|
||||||
#Generate PDF
|
#Generate PDF
|
||||||
#Print
|
#Print
|
||||||
if printer_settings
|
if !printer_settings.unique_code.match?(/receiptbillorder/i)
|
||||||
if !printer_settings.unique_code.match?(/receiptbillorder/i)
|
if Lookup.collection_of("print_settings").any? { |x| x == ["ReceiptBillA5Pdf", "1"] } #print_settings with name:ReceiptBillA5Pdf
|
||||||
if Lookup.collection_of("print_settings").any? { |x| x == ["ReceiptBillA5Pdf", "1"] } #print_settings with name:ReceiptBillA5Pdf
|
pdf = ReceiptBillA5Pdf.new(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance,card_data,other_amount,latest_order_no,card_balance_amount)
|
||||||
pdf = ReceiptBillA5Pdf.new(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance,card_data,other_amount,latest_order_no,card_balance_amount)
|
|
||||||
else
|
|
||||||
pdf = PrintSetting.where("unique_code REGEXP ?", "receipt.*bill.*pdf").first.unique_code.constantize.new(printer_settings, kbz_pay_status, qr_code, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance,card_data,other_amount,latest_order_no,card_balance_amount)
|
|
||||||
end
|
|
||||||
else
|
else
|
||||||
#doemal online order pdf template
|
pdf = PrintSetting.where("unique_code REGEXP ?", "receipt.*bill.*pdf").first.unique_code.constantize.new(printer_settings, kbz_pay_status, qr_code, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance,card_data,other_amount,latest_order_no,card_balance_amount)
|
||||||
pdf = ReceiptBillOrderPdf.new(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance,card_data,other_amount,latest_order_no,card_balance_amount,order_reservation)
|
|
||||||
end
|
end
|
||||||
|
else
|
||||||
# print as print copies in printer setting
|
#doemal online order pdf template
|
||||||
count = printer_settings.print_copies
|
pdf = ReceiptBillOrderPdf.new(printer_settings, sale_items, sale_data, customer_name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details,printed_status,balance,card_data,other_amount,latest_order_no,card_balance_amount,order_reservation)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# print as print copies in printer setting
|
||||||
|
count = printer_settings.print_copies
|
||||||
|
|
||||||
directory_name = 'public/receipts'
|
directory_name = 'public/receipts'
|
||||||
Dir.mkdir(directory_name) unless File.exists?(directory_name)
|
Dir.mkdir(directory_name) unless File.exists?(directory_name)
|
||||||
Rails.logger.debug "############## dir::" + directory_name
|
Rails.logger.debug "############## dir::" + directory_name
|
||||||
if count == 1
|
|
||||||
filename = directory_name + "/receipt_bill_#{sale_data.receipt_no}.pdf"
|
filename = "#{directory_name}/receipt_bill_#{sale_data.receipt_no}#{count != 1 ? "_#{count}" : ''}.pdf"
|
||||||
pdf.render_file filename
|
pdf.render_file filename
|
||||||
if printed_status != 'Paid' && printed_status != 'credit_payment'
|
if !Lookup.where(lookup_type: "ReceiptPdfView").pluck(:value).include?('1')
|
||||||
#no print in cloud server
|
#no print in cloud server
|
||||||
if ENV["SERVER_MODE"] != "cloud"
|
puts "SERVER_MODE #{ENV["SERVER_MODE"]}"
|
||||||
self.print(directory_name + "/receipt_bill_#{sale_data.receipt_no}.pdf", cashier_terminal.printer_name)
|
if ENV["SERVER_MODE"] != "cloud"
|
||||||
end
|
self.print(filename, cashier_terminal.printer_name)
|
||||||
elsif printed_status == 'credit_payment'
|
|
||||||
filename = directory_name + "/receipt_bill_credit_#{sale_data.receipt_no}.pdf"
|
|
||||||
pdf.render_file filename
|
|
||||||
self.print(directory_name + "/receipt_bill_credit_#{sale_data.receipt_no}.pdf", cashier_terminal.printer_name)
|
|
||||||
end
|
|
||||||
else
|
|
||||||
filename = directory_name + "/receipt_bill_#{sale_data.receipt_no}_#{count}.pdf"
|
|
||||||
pdf.render_file filename
|
|
||||||
if printed_status != 'Paid'
|
|
||||||
#no print in cloud server
|
|
||||||
if ENV["SERVER_MODE"] != "cloud"
|
|
||||||
self.print(directory_name + "/receipt_bill_#{sale_data.receipt_no}_#{count}.pdf", cashier_terminal.printer_name)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
Rails.logger.debug "############## filename::" + filename
|
Rails.logger.debug "############## filename::" + filename
|
||||||
return filename, sale_data.receipt_no, cashier_terminal.printer_name
|
|
||||||
else
|
else
|
||||||
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
if !Lookup.where(lookup_type: "ReceiptPdfView").pluck(:value).include?('1')
|
||||||
queue: cashier_terminal.printer_name,
|
ActionCable.server.broadcast("print_channel_#{Shop.current_shop.shop_code}",
|
||||||
unique_code: print_settings.unique_code,
|
queue: cashier_terminal.printer_name,
|
||||||
print_copies: print_settings.print_copies,
|
unique_code: print_settings.unique_code,
|
||||||
data: {
|
print_copies: print_settings.print_copies,
|
||||||
shop_details: shop_details.as_json,
|
data: {
|
||||||
body: { sale_data: sale_data,
|
shop_details: shop_details.as_json,
|
||||||
booking: sale_data.bookings,
|
body: { sale_data: sale_data,
|
||||||
dining_facility: sale_data.bookings[0].dining_facility.as_json(methods: :type),
|
booking: sale_data.bookings,
|
||||||
sale_taxes: sale_data.sale_taxes,
|
dining_facility: sale_data.booking.dining_facility.as_json(methods: :type),
|
||||||
latest_order_no: latest_order_no,
|
sale_taxes: sale_data.sale_taxes,
|
||||||
sale_items: sale_items,
|
latest_order_no: latest_order_no,
|
||||||
precision: print_settings.precision,
|
sale_items: sale_items,
|
||||||
delimiter: print_settings.delimiter,
|
precision: print_settings.precision,
|
||||||
member_info: member_info,
|
delimiter: print_settings.delimiter,
|
||||||
customer_name: customer_name,
|
member_info: member_info,
|
||||||
rebate_amount: rebate_amount,
|
customer_name: customer_name,
|
||||||
current_balance: balance,
|
rebate_amount: rebate_amount,
|
||||||
card_data: card_data,
|
current_balance: balance,
|
||||||
card_balance_amount: card_balance_amount,
|
card_data: card_data,
|
||||||
discount_price_by_accounts: discount_price_by_accounts,
|
card_balance_amount: card_balance_amount,
|
||||||
item_price_by_accounts: item_price_by_accounts,
|
discount_price_by_accounts: discount_price_by_accounts,
|
||||||
sale_payments: sale_data.sale_payments
|
item_price_by_accounts: item_price_by_accounts,
|
||||||
},
|
sale_payments: sale_data.sale_payments
|
||||||
footer: {
|
},
|
||||||
printed_status: printed_status, footer_text: "Thank You! See you Again"
|
footer: {
|
||||||
|
printed_status: printed_status, footer_text: "Thank You! See you Again"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
)
|
||||||
)
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
return filename || '', sale_data.receipt_no, cashier_terminal.printer_name
|
||||||
end
|
end
|
||||||
|
|
||||||
# stock check
|
# stock check
|
||||||
@@ -266,18 +254,18 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
|
|||||||
# if count == 0
|
# if count == 0
|
||||||
# self.print(filename, printer_name)
|
# self.print(filename, printer_name)
|
||||||
# else
|
# else
|
||||||
if count == 1
|
if count == 1
|
||||||
#no print in cloud server
|
#no print in cloud server
|
||||||
if ENV["SERVER_MODE"] != "cloud"
|
if ENV["SERVER_MODE"] != "cloud"
|
||||||
self.print(filename, printer_name)
|
self.print(filename, printer_name)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
filename = "public/receipts/receipt_bill_#{receipt_no}_#{count}.pdf"
|
filename = "public/receipts/receipt_bill_#{receipt_no}_#{count}.pdf"
|
||||||
# no print in cloud server
|
# no print in cloud server
|
||||||
if ENV["SERVER_MODE"] != "cloud"
|
if ENV["SERVER_MODE"] != "cloud"
|
||||||
self.print(filename, printer_name)
|
self.print(filename, printer_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -726,6 +726,7 @@ $(document).ready(function(){
|
|||||||
data: "cash="+ cash + "&sale_id=" + sale_id + "&type=" + cashier_type + "&tax_type=" + tax_type + "&is_kbz=" + is_kbz,
|
data: "cash="+ cash + "&sale_id=" + sale_id + "&type=" + cashier_type + "&tax_type=" + tax_type + "&is_kbz=" + is_kbz,
|
||||||
success:function(result){
|
success:function(result){
|
||||||
/* start delete receipt no in first bill*/
|
/* start delete receipt no in first bill*/
|
||||||
|
console.log(result);
|
||||||
if(($("#receipt_no").html()!=undefined) && ($("#receipt_no").html()!="")){
|
if(($("#receipt_no").html()!=undefined) && ($("#receipt_no").html()!="")){
|
||||||
var receipt_no = ($("#receipt_no").html()).trim();
|
var receipt_no = ($("#receipt_no").html()).trim();
|
||||||
deleteReceiptNoInFirstBillData(receipt_no);
|
deleteReceiptNoInFirstBillData(receipt_no);
|
||||||
@@ -740,33 +741,29 @@ $(document).ready(function(){
|
|||||||
var msg = '';
|
var msg = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#loading_wrapper" ).hide();
|
$("#changed_amount").text("");
|
||||||
if(location.pathname.includes("credit_payment")){
|
if($('#balance').text() < 0){
|
||||||
|
<% if precision.to_i > 0 %>
|
||||||
|
$("#changed_amount").text('Changed amount ' + parseFloat($('#balance').text() * (-1)).toFixed(<%= precision %>));
|
||||||
|
<% else %>
|
||||||
|
$("#changed_amount").text('Changed amount ' + parseFloat($('#balance').text() * (-1)));
|
||||||
|
<% end %>
|
||||||
|
}
|
||||||
|
|
||||||
|
if(location.pathname.includes("credit_payment") || pdf_view != 1){
|
||||||
payment_success_alert();
|
payment_success_alert();
|
||||||
}else{
|
} else {
|
||||||
//PDF lightbox data
|
//PDF lightbox data;
|
||||||
var pdfPath = "/en/pdfjs/minimal?file=" + result.filename.substring(6);
|
var pdfPath = "/en/pdfjs/minimal?file=" + result.filename.substring(6)
|
||||||
$("#sale_receipt_no").val(result.receipt_no);
|
$("#sale_receipt_no").val(result.receipt_no);
|
||||||
$("#filename").val(result.filename);
|
$("#filename").val(result.filename);
|
||||||
$("#printer_name").val(result.printer_name);
|
$("#printer_name").val(result.printer_name);
|
||||||
$("#receipt_pdf").attr("src", pdfPath);
|
$("#receipt_pdf").attr("src", pdfPath);
|
||||||
$("#changed_amount").text("");
|
$("#pdfModal").modal({show : true, backdrop : false, keyboard : false});
|
||||||
if($('#balance').text() < 0){
|
$("#pdfModalLabel").text("Sale Completed");
|
||||||
<% if precision.to_i > 0 %>
|
|
||||||
$("#changed_amount").text('Changed amount ' + parseFloat($('#balance').text() * (-1)).toFixed(<%= precision %>));
|
|
||||||
<% else %>
|
|
||||||
$("#changed_amount").text('Changed amount ' + parseFloat($('#balance').text() * (-1)));
|
|
||||||
<% end %>
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pdf_view == 1) {
|
|
||||||
$("#pdfModal").modal({show : true, backdrop : false, keyboard : false});
|
|
||||||
$("#pdfModalLabel").text("Sale Completed");
|
|
||||||
}else{
|
|
||||||
//PDF lightbox data
|
|
||||||
print_receipt();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#loading_wrapper").hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -1010,6 +1007,7 @@ $(document).ready(function(){
|
|||||||
if($('#pay').is(":visible")) {
|
if($('#pay').is(":visible")) {
|
||||||
$('#pay').prop("disabled",true);
|
$('#pay').prop("disabled",true);
|
||||||
}
|
}
|
||||||
|
$("#loading_wrapper" ).show();
|
||||||
|
|
||||||
var sale_id = $('#sale_id').text();
|
var sale_id = $('#sale_id').text();
|
||||||
var filename = $("#filename").val();
|
var filename = $("#filename").val();
|
||||||
@@ -1048,6 +1046,8 @@ $(document).ready(function(){
|
|||||||
}else{
|
}else{
|
||||||
payment_success_alert();
|
payment_success_alert();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$("#loading_wrapper" ).hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user