update other payment with bank

This commit is contained in:
Aung Myo
2018-06-19 14:51:21 +06:30
parent 217d3fe88b
commit adbccb950e
3 changed files with 8 additions and 3 deletions

View File

@@ -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";
});
}
}

View File

@@ -119,6 +119,8 @@
<button type="button" class="btn bg-default btn-block" onclick="window.location.href = '/origami/sale/<%= @sale_id %>/<%= @cashier_type %>/payment/others_payment';"><i class="material-icons m-t--5">reply</i> Back </button>
</div>
<input type="hidden" id="sale_id" value="<%= @sale_id %>">
</div>
</div>
<script>

View File

@@ -9,6 +9,7 @@
</span>
</ol>
</div> -->
<div class="row">
<div class="col-lg-11 col-md-11 col-sm-11">
<div class="row">
@@ -29,6 +30,7 @@
</div>
</div>
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
<input type="hidden" id="sale_id" value="<%= @sale_id %>">
<script type="text/javascript">
$(document).ready(function () {
setHeaderBreadCrumb(_OTHER_PAYMENTS_);
@@ -57,6 +59,7 @@
})
$('#back').on('click',function(){
window.location.href = '/origami/sale/<%= @sale_id %>/<%= @cashier_type %>/payment/';
window.location.href = '/origami/sale/'+'<%= @sale_id %>'+'/<%= @cashier_type %>/payment';
// window.location.href = '/origami/sale/' + sale_id + "/cashier/payment";
})
</script>