foc bill for table invoice

This commit is contained in:
Aung Myo
2018-08-30 11:50:40 +06:30
parent 61ac91ff57
commit fef6a4ccd0

View File

@@ -505,29 +505,11 @@ $('#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 () { }, function () {
alert("hi");
alert(result.filepath);
alert(result.filepath.substr(6));
alert(result.printer_url);
// For Server Print - from jade // For Server Print - from jade
if ($("#server_mode").val() == "cloud") { if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath.substr(6), result.printer_url); code2lab.printFile(result.filepath.substr(6), result.printer_url);