update jade print in pay,void and foc

This commit is contained in:
Aung Myo
2018-03-21 15:37:45 +06:30
parent a30abfb30c
commit 80853fb666
4 changed files with 58 additions and 17 deletions

View File

@@ -726,9 +726,9 @@
createReceiptNoInFirstBillData(receipt_no,"");
// For Server Print - from jade
// if ($("#server_mode").val() == "cloud") {
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath, result.printer_url);
// }
}
// console.log(result);
// code2lab.printBill(result.filepath, result.printer_model, result.printer_url);
@@ -920,8 +920,12 @@
type: 'POST',
url: ajax_url,
data: "remark="+ remark + "&sale_id=" + sale_id,
success: function () {
window.location.href = '/origami/';
success: function (result) {
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
code2lab.printFile(result.filepath, result.printer_url);
}
window.location.href = '/origami/';
}
});
}