diff --git a/app/views/foodcourt/payments/show.html.erb b/app/views/foodcourt/payments/show.html.erb
index 818e1b3c..d844c973 100755
--- a/app/views/foodcourt/payments/show.html.erb
+++ b/app/views/foodcourt/payments/show.html.erb
@@ -193,12 +193,18 @@
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
+ <%else%>
+
+ <%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
+
<%end%>
<%if @credit_exist%>
Credit
<%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
+ <%else%>
+ <%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
<%end%>
Other Payments
@@ -907,6 +913,7 @@ $(document).ready(function(){
}
});
+ <% if @cash_exist%>
$(document).on('click', '.cashier_number', function(event){
if(event.handled !== true) {
var original_value;
@@ -976,7 +983,7 @@ $(document).ready(function(){
return false;
}
});
-
+<%end%>
function update_balance(){
var cash = $('#cash').text();
diff --git a/config/puma.rb b/config/puma.rb
index d24425ae..f0013d25 100755
--- a/config/puma.rb
+++ b/config/puma.rb
@@ -1,11 +1,11 @@
-application_path="#{File.expand_path("../..", __FILE__)}"
-directory application_path
-#environment ENV.fetch("RAILS_ENV") { "production" }
-environment "production"
-pidfile "#{application_path}/tmp/puma/pid"
-state_path "#{application_path}/tmp/puma/state"
-stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
-port ENV.fetch("PORT") { 62158 }
-workers 2
-preload_app!
-threads 1,1
+# application_path="#{File.expand_path("../..", __FILE__)}"
+# directory application_path
+# #environment ENV.fetch("RAILS_ENV") { "production" }
+# environment "production"
+# pidfile "#{application_path}/tmp/puma/pid"
+# state_path "#{application_path}/tmp/puma/state"
+# stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
+# port ENV.fetch("PORT") { 62158 }
+# workers 2
+# preload_app!
+# threads 1,1