update show paent for foc and waste and spoile

This commit is contained in:
Aung Myo
2018-07-25 16:40:35 +06:30
parent 248f16e6d7
commit 620f7eed32

View File

@@ -401,7 +401,7 @@
</button>
<!-- -->
<% if current_login_employee.role == "cashier" %>
<% if @other_payment < 0 && @sale_payment.nil? %>
<% if @other_payment <= 0 && @sale_payment.nil? %>
<%if @sale_data.total_discount == 0 %>
<a class="btn btn-block bg-deep-purple waves-effect access_modal" data-toggle="modal" data-type="foc"> FOC</a>
<% end %>
@@ -416,7 +416,7 @@
<% end %>
<% end %>
<% else %>
<% if @other_payment < 0 && @sale_payment.nil?%>
<% if @other_payment <= 0 && @sale_payment.nil?%>
<%if @sale_data.total_discount == 0 %>
<button type="button" class="btn bg-deep-purple btn-block" data-toggle="modal" data-target="#focModal" <%= (can? :foc, :payment)? ' ': 'disabled=' %> active="true"> FOC </button>
<%end %>