Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
@@ -632,6 +632,8 @@ var customer_name = "<%= @customer.name %>";
|
||||
if (credit <= 0) {
|
||||
calculate_member_discount(sale_id);
|
||||
}
|
||||
|
||||
$("#pdfModal").modal({show : true, backdrop : false, keyboard : false});
|
||||
|
||||
$.ajax({type: "POST",
|
||||
url: "<%= origami_payment_cash_path %>",
|
||||
@@ -652,13 +654,14 @@ var customer_name = "<%= @customer.name %>";
|
||||
var msg = '';
|
||||
}
|
||||
|
||||
$("#loading_wrapper" ).hide();
|
||||
$("#loading_wrapper" ).hide();
|
||||
|
||||
//PDF lightbox data
|
||||
var pdfPath = "/en/pdfjs/minimal?file=" + result.filename.substring(6);
|
||||
$("#sale_receipt_no").val(result.receipt_no);
|
||||
$("#filename").val(result.filename);
|
||||
$("#printer_name").val(result.printer_name);
|
||||
$("#receipt_pdf").attr("src", result.filename.substring(6));
|
||||
$("#receipt_pdf").attr("src", pdfPath);
|
||||
$("#pdfModal").modal({show : true, backdrop : false, keyboard : false});
|
||||
$("#pdfModalLabel").text("Sale Completed");
|
||||
$("#changed_amount").text("");
|
||||
|
||||
@@ -115,7 +115,8 @@
|
||||
url: "/settings/menus/" + menu_id + "/export",
|
||||
success: function(result){
|
||||
if(result.status){
|
||||
swal("Success", "Export Success...", "success");
|
||||
location.href = result.path.substring(6);
|
||||
// swal("Success", "Export Success...", "success");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user