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