From 90e30440c1b4f69de1041b672505e8800084189e Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Tue, 6 Feb 2018 11:06:30 +0630 Subject: [PATCH] update discount for first bill --- app/views/origami/home/show.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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{