Payment Method fixed

This commit is contained in:
yarzar_code
2019-12-18 17:48:48 +06:30
parent 41d9c1375c
commit 8273c46cdb
2 changed files with 19 additions and 12 deletions

View File

@@ -193,12 +193,18 @@
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
</div>
</div>
<%else%>
<div class="col-md-4" id="cash" style="display:none;">
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
</div>
<%end%>
<%if @credit_exist%>
<div class="row payment credit-color p-l-5 p-r-5" id="credit_payment" >
<div class="col-md-8">Credit</div>
<div class="col-md-4" id="credit"><%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %></div>
</div>
<%else%>
<div class="col-md-4" id="credit" style="display:none;"><%= number_with_precision(@credit, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %></div>
<%end%>
<div class="row payment other-payment-color btn_paymal_member">
<div class="col-md-8">Other Payments</div>
@@ -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();

View File

@@ -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