update print file.substring for jade

This commit is contained in:
Aung Myo
2018-03-28 09:29:54 +06:30
parent ac0ee37136
commit f126d2faf6
3 changed files with 9 additions and 9 deletions

View File

@@ -726,9 +726,9 @@
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath, result.printer_url);
code2lab.printFile(result.filepath.substr(6), result.printer_url);
}
// console.log(result);
// code2lab.printBill(result.filepath, result.printer_model, result.printer_url);
location.reload();
@@ -776,7 +776,7 @@
createReceiptNoInFirstBillData(receipt_no,type);
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath, result.printer_url);
code2lab.printFile(result.filepath.substr(6), result.printer_url);
}
location.reload();
}
@@ -942,7 +942,7 @@
success: function (result) {
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath, result.printer_url);
code2lab.printFile(result.filepath.substr(6), result.printer_url);
}
window.location.href = '/origami/';
}