update print file.substring for jade
This commit is contained in:
@@ -705,7 +705,7 @@ $("#first_bill").on('click', function(){
|
||||
createReceiptNoInFirstBillData(receipt_no,"");
|
||||
// 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();
|
||||
}
|
||||
@@ -739,7 +739,7 @@ $(".choose_payment").on('click', 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);
|
||||
}
|
||||
|
||||
location.reload();
|
||||
|
||||
Reference in New Issue
Block a user