diff --git a/app/views/origami/payments/show.html.erb b/app/views/origami/payments/show.html.erb
index cde5e3d0..29d93ca7 100755
--- a/app/views/origami/payments/show.html.erb
+++ b/app/views/origami/payments/show.html.erb
@@ -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();
+ // }
+ }