payment btn

This commit is contained in:
Aung Kyaw Phyoe
2019-02-07 13:18:36 +06:30
parent 8e7e58f8ac
commit 7ded9a9045

View File

@@ -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>