diff --git a/app/controllers/origami/void_controller.rb b/app/controllers/origami/void_controller.rb
index a0c4a23b..0d368224 100755
--- a/app/controllers/origami/void_controller.rb
+++ b/app/controllers/origami/void_controller.rb
@@ -63,6 +63,7 @@ class Origami::VoidController < BaseOrigamiController
member_info = nil
rebate_amount = nil
+ current_balance = nil
# For Cashier by Zone
bookings = Booking.where("sale_id='#{sale_id}'")
@@ -87,7 +88,9 @@ class Origami::VoidController < BaseOrigamiController
if customer.membership_id != nil && rebate
member_info = Customer.get_member_account(customer)
rebate_amount = Customer.get_membership_transactions(customer,saleObj.receipt_no)
+ current_balance = SaleAudit.paymal_search(sale_id)
end
+
# get printer info
print_settings=PrintSetting.find_by_unique_code(unique_code)
# Calculate Food and Beverage Total
diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb
index fc1a5b20..372efa83 100755
--- a/app/views/origami/home/show.html.erb
+++ b/app/views/origami/home/show.html.erb
@@ -576,7 +576,7 @@
swal ( "Oops" , "Please select an table!" , "warning" );
}
}else{
- swal("Opps","You are not authorized for void","warning")
+ swal("Opps","You are not authorized for Discount","warning")
}
return false;
});
diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb
index f8dc69f0..00350f1b 100755
--- a/app/views/origami/rooms/show.html.erb
+++ b/app/views/origami/rooms/show.html.erb
@@ -367,17 +367,21 @@
-
+
-
-
- <% if ENV["SERVER_MODE"] != "cloud" %>
-
- <% end %>
+ <% if ENV["SERVER_MODE"] == "cloud" %>
+
+ <% else %>
+ <%if @membership.discount && @obj_sale.customer.membership_id %>
+
+ <%else%>
+
+ <%end%>
+ <%end%>
<% end %>
@@ -393,6 +397,7 @@