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

@@ -725,7 +725,7 @@ var customer_name = "<%= @customer.name %>";
customer_display_view(null,"reload");
// 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);
}
if (cashier_type=="cashier") {
window.location.href = '/origami';
@@ -939,7 +939,7 @@ var customer_name = "<%= @customer.name %>";
}, function () {
// 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);
}
if (cashier_type=="cashier") {
window.location.href = '/origami';
@@ -1018,7 +1018,7 @@ var customer_name = "<%= @customer.name %>";
console.log(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);
}
if (cashier_type=="cashier") {
window.location.href = '/origami';