order reservation js

This commit is contained in:
phyusin
2018-12-10 13:34:22 +06:30
parent 6cbbfa01bc
commit b1bd69c70e

View File

@@ -726,12 +726,12 @@ function print_receipt(){
data: params, data: params,
success:function(result){ success:function(result){
// For Server Print - from jade // For Server Print - from jade
// if ($("#server_mode").val() == "cloud") { if ($("#server_mode").val() == "cloud") {
// if(typeof code2lab != 'undefined'){ if(typeof code2lab != 'undefined'){
// code2lab.printFile(result.filepath.substr(6), result.printer_url); code2lab.printFile(result.filepath.substr(6), result.printer_url);
// } }
// } }
// else{ else{
swal({ swal({
title: "Print Success", title: "Print Success",
text: "Complete Order", text: "Complete Order",
@@ -743,7 +743,7 @@ function print_receipt(){
}, function () { }, function () {
window.location.href = '/origami/order_reservation'; window.location.href = '/origami/order_reservation';
}); });
// } }
} }
}); });
} }