SQA feedback
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var type = '<%= @type %>';
|
||||
var cashier_type = '<%= @cashier_type %>';
|
||||
$('#close_cashier').on('click',function(){
|
||||
var amount = $('#closing_balance_amount').val();
|
||||
var shift_id = "<%= @shift.id rescue ""%>"
|
||||
@@ -73,7 +73,7 @@
|
||||
});
|
||||
|
||||
$('#back').on('click',function(){
|
||||
if(type!='quick_service'){
|
||||
if(cashier_type!='quick_service'){
|
||||
window.location.href = '/origami';
|
||||
}else{
|
||||
window.location.href = '/origami/quick_service';
|
||||
@@ -95,7 +95,7 @@
|
||||
closeOnCancel: false,
|
||||
allowOutsideClick: false
|
||||
}, function () {
|
||||
window.location.href = '/origami/shift/'+type+'/close';
|
||||
window.location.href = '/origami/shift/'+cashier_type+'/close';
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -120,7 +120,7 @@
|
||||
closeOnCancel: false,
|
||||
allowOutsideClick: false
|
||||
}, function () {
|
||||
window.location.href = '/origami/shift/'+type+'/close';
|
||||
window.location.href = '/origami/shift/'+cashier_type+'/close';
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -184,7 +184,7 @@
|
||||
closeOnCancel: false,
|
||||
allowOutsideClick: false
|
||||
}, function () {
|
||||
window.location.href = '/origami/shift/close';
|
||||
window.location.href = '/origami/shift/'+cashier_type+'/close';
|
||||
});
|
||||
// reqCBBankAlipaySettlement();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user