first bill for table invoice

This commit is contained in:
Aung Myo
2018-08-30 11:44:51 +06:30
parent aa3ca279e0
commit 61ac91ff57

View File

@@ -505,17 +505,37 @@ $('#foc').click(function() {
url: "/origami/payment/cashier/foc",
data: params,
success:function(result){
// if (cash >= 0) {
// swal({
// title: "Information!",
// text: 'Thank You !',
// }, function (result) {
// // For Server Print - from jade
// if ($("#server_mode").val() == "cloud") {
// code2lab.printFile(result.filepath.substr(6), result.printer_url);
// }
// window.location.href = '/origami';
// });
// }
alert("hielslsl");
alert(result)
if (cash >= 0) {
swal({
title: "Information!",
text: 'Thank You !',
}, function (result) {
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath.substr(6), result.printer_url);
}
window.location.href = '/origami';
});
}, function () {
alert("hi");
alert(result.filepath);
alert(result.filepath.substr(6));
alert(result.printer_url);
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath.substr(6), result.printer_url);
}
window.location.href = '/origami';
});
}
}
});