update report and view
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Nav tabs - End -->
|
||||
<input type="hidden" id="rounding_adj" value="<%= @shop.is_rounding_adj %>">
|
||||
<div class="tab-content">
|
||||
<!--- Panel 0 - Completed Orders -->
|
||||
|
||||
@@ -452,9 +451,7 @@ $("#first_bill").on('click', function(){
|
||||
|
||||
$('#pay').on('click',function() {
|
||||
var sale_id = $('#sale_id').val();
|
||||
var rounding_adj = $('#rounding_adj').val();
|
||||
|
||||
if(rounding_adj == "true"){
|
||||
var url = '/origami/sale/'+ sale_id + "/rounding_adj" ;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -463,9 +460,7 @@ $('#pay').on('click',function() {
|
||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||
}
|
||||
});
|
||||
}else{
|
||||
window.location.href = '/origami/sale/'+ sale_id + "/payment";
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user