first bill for table invoice
This commit is contained in:
@@ -505,17 +505,37 @@ $('#foc').click(function() {
|
|||||||
url: "/origami/payment/cashier/foc",
|
url: "/origami/payment/cashier/foc",
|
||||||
data: params,
|
data: params,
|
||||||
success:function(result){
|
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) {
|
if (cash >= 0) {
|
||||||
swal({
|
swal({
|
||||||
title: "Information!",
|
title: "Information!",
|
||||||
text: 'Thank You !',
|
text: 'Thank You !',
|
||||||
}, function (result) {
|
}, function () {
|
||||||
// For Server Print - from jade
|
alert("hi");
|
||||||
if ($("#server_mode").val() == "cloud") {
|
alert(result.filepath);
|
||||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
alert(result.filepath.substr(6));
|
||||||
}
|
alert(result.printer_url);
|
||||||
window.location.href = '/origami';
|
// For Server Print - from jade
|
||||||
});
|
if ($("#server_mode").val() == "cloud") {
|
||||||
|
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||||
|
}
|
||||||
|
|
||||||
|
window.location.href = '/origami';
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user