diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb
index cc7c564f..b7d38125 100755
--- a/app/views/origami/home/show.html.erb
+++ b/app/views/origami/home/show.html.erb
@@ -476,10 +476,9 @@
receipt_no = ($("#receipt_no").html()).trim();
}
- discount="<%= @membership.discount%>"
- membership_id="<%= @obj_sale.customer.membership_id%>"
+ discount="<%= @membership.discount%>"\
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
- if (discount && membership_id) {
+ if (discount) {
if(checkReceiptNoInFirstBillData(receipt_no,"")){
$("#pay").show();
}else{