Edit reprint
This commit is contained in:
@@ -418,7 +418,7 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
cashier_terminal = CashierTerminal.find(shift.cashier_terminal_id)
|
cashier_terminal = CashierTerminal.find(shift.cashier_terminal_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
# if ENV["SERVER_MODE"] != "cloud" #no print in cloud server
|
||||||
unique_code = "ReceiptBillPdf"
|
unique_code = "ReceiptBillPdf"
|
||||||
customer= Customer.find(saleObj.customer_id)
|
customer= Customer.find(saleObj.customer_id)
|
||||||
|
|
||||||
@@ -462,7 +462,7 @@ class Origami::PaymentsController < BaseOrigamiController
|
|||||||
|
|
||||||
# Mobile Print
|
# Mobile Print
|
||||||
render :json => result.to_json
|
render :json => result.to_json
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|
||||||
def foc
|
def foc
|
||||||
|
|||||||
@@ -790,7 +790,6 @@
|
|||||||
|
|
||||||
// For Server Print - from jade
|
// For Server Print - from jade
|
||||||
if ($("#server_mode").val() == "cloud") {
|
if ($("#server_mode").val() == "cloud") {
|
||||||
alert("Hello");
|
|
||||||
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
code2lab.printFile(result.filepath.substr(6), result.printer_url);
|
||||||
}
|
}
|
||||||
location.reload();
|
location.reload();
|
||||||
|
|||||||
@@ -424,7 +424,7 @@ $(document).on('click', '.access_modal', function(event){
|
|||||||
|
|
||||||
$('#re-print').click(function() {
|
$('#re-print').click(function() {
|
||||||
var sale_id = $('#sale_id').val();
|
var sale_id = $('#sale_id').val();
|
||||||
var ajax_url = '/origami/'+ sale_id + "/reprint"
|
var ajax_url = "/origami/"+ sale_id + "/reprint"
|
||||||
// return false;
|
// return false;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
|
|||||||
Reference in New Issue
Block a user