payment btn
This commit is contained in:
@@ -721,7 +721,6 @@ $(document).ready(function(){
|
|||||||
var sale_id = $('#sale_id').text();
|
var sale_id = $('#sale_id').text();
|
||||||
window.location.replace('/origami/sale/'+sale_id+'/cashier/payment');
|
window.location.replace('/origami/sale/'+sale_id+'/cashier/payment');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* replace url type*/
|
/* replace url type*/
|
||||||
/* start check first bill or not*/
|
/* start check first bill or not*/
|
||||||
var member_id = $('#membership_id').text();
|
var member_id = $('#membership_id').text();
|
||||||
@@ -1125,6 +1124,8 @@ $(document).ready(function(){
|
|||||||
<% else %>
|
<% else %>
|
||||||
$('#balance').text(parseFloat(result));
|
$('#balance').text(parseFloat(result));
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
show_hide_btn($('#balance').text());
|
||||||
}
|
}
|
||||||
|
|
||||||
function customer_display_view(data,status) {
|
function customer_display_view(data,status) {
|
||||||
@@ -1831,4 +1832,15 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
},100);
|
},100);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function show_hide_btn(balance) {
|
||||||
|
// show discount when balance is greater than 0
|
||||||
|
// if(parseFloat(balance) > 0){
|
||||||
|
// $("#discount").show();
|
||||||
|
// $("#edit").show();
|
||||||
|
// }else{
|
||||||
|
// $("#discount").hide();
|
||||||
|
// $("#edit").hide();
|
||||||
|
// }
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user