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();