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