Payment Method

This commit is contained in:
yarzar_code
2019-12-18 15:05:28 +06:30
parent 358fbcd134
commit 41d9c1375c
3 changed files with 26 additions and 6 deletions

View File

@@ -186,21 +186,20 @@
</strong>
</div>
</div>
<% if @cash_exist %>
<div class="row payment cash-color p-l-5 p-r-5">
<div class="col-md-8">Cash</div>
<div class="col-md-4" id="cash" >
<%= number_with_precision(@cash, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %>
</div>
</div>
<% if @sale_payment.nil? && @cashier_type != "food_court" %>
<%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 hidden" id="credit">0</div>
<% end %>
<%end%>
<div class="row payment other-payment-color btn_paymal_member">
<div class="col-md-8">Other Payments</div>
<div class="col-md-4" id="other_payment_amount">