Cloud mode in reprint

This commit is contained in:
San Wai Lwin
2018-06-07 16:11:34 +06:30
parent af5b4cc9c8
commit 13e11bf777
3 changed files with 24 additions and 4 deletions

View File

@@ -776,7 +776,6 @@
if (isConfirm) {
var sale_id = $('#sale_id').val();
var ajax_url = "/origami/sale/" + sale_id + "/first_bill";
var server_mode =
$.ajax({
type: "GET",
@@ -788,6 +787,7 @@
// For Server Print - from jade
if ($("#server_mode").val() == "cloud") {
alert("Hello");
code2lab.printFile(result.filepath.substr(6), result.printer_url);
}
location.reload();