update other payment with bank
This commit is contained in:
@@ -291,7 +291,7 @@ function deleteReceiptNoInFirstBillData(receipt_no) {
|
|||||||
//start CB ECR integration
|
//start CB ECR integration
|
||||||
//set CB com port data
|
//set CB com port data
|
||||||
function setCommPorts(comPortLists) {
|
function setCommPorts(comPortLists) {
|
||||||
var sale_id = "<%= @sale_id %>";
|
var sale_id = $('#sale_id').val();
|
||||||
$('#com_port_name').html("");
|
$('#com_port_name').html("");
|
||||||
var jsonPortLists = $.parseJSON(comPortLists);
|
var jsonPortLists = $.parseJSON(comPortLists);
|
||||||
// alert(jsonPortLists);
|
// alert(jsonPortLists);
|
||||||
|
|||||||
@@ -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>
|
<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>
|
</div>
|
||||||
|
|
||||||
|
<input type="hidden" id="sale_id" value="<%= @sale_id %>">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</ol>
|
</ol>
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-11 col-md-11 col-sm-11">
|
<div class="col-lg-11 col-md-11 col-sm-11">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@@ -29,6 +30,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
|
<input type="hidden" id="server_mode" value="<%= ENV["SERVER_MODE"] %>">
|
||||||
|
<input type="hidden" id="sale_id" value="<%= @sale_id %>">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
setHeaderBreadCrumb(_OTHER_PAYMENTS_);
|
setHeaderBreadCrumb(_OTHER_PAYMENTS_);
|
||||||
@@ -57,6 +59,7 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
$('#back').on('click',function(){
|
$('#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>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user