diff --git a/app/assets/javascripts/origami.js b/app/assets/javascripts/origami.js index f9550317..de92d994 100755 --- a/app/assets/javascripts/origami.js +++ b/app/assets/javascripts/origami.js @@ -291,7 +291,7 @@ function deleteReceiptNoInFirstBillData(receipt_no) { //start CB ECR integration //set CB com port data function setCommPorts(comPortLists) { - var sale_id = "<%= @sale_id %>"; + var sale_id = $('#sale_id').val(); $('#com_port_name').html(""); var jsonPortLists = $.parseJSON(comPortLists); // alert(jsonPortLists); @@ -310,7 +310,7 @@ function setCommPorts(comPortLists) { closeOnCancel: false, allowOutsideClick: false }, function () { - window.location.href = '/origami/sale/'+ sale_id +"/"+cashier_type+"/payment/others_payment"; + window.location.href = '/origami/sale/'+ sale_id +"/"+cashier_type+"/payment/others_payment"; }); } } diff --git a/app/views/origami/mpu/index.html.erb b/app/views/origami/mpu/index.html.erb index 3edb1f7a..aa7dabb9 100755 --- a/app/views/origami/mpu/index.html.erb +++ b/app/views/origami/mpu/index.html.erb @@ -119,6 +119,8 @@ + +