update other payment with bank
This commit is contained in:
@@ -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";
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user