update show paent for foc and waste and spoile
This commit is contained in:
@@ -401,7 +401,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<% if current_login_employee.role == "cashier" %>
|
<% 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 %>
|
<%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>
|
<a class="btn btn-block bg-deep-purple waves-effect access_modal" data-toggle="modal" data-type="foc"> FOC</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -416,7 +416,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if @other_payment < 0 && @sale_payment.nil?%>
|
<% if @other_payment <= 0 && @sale_payment.nil?%>
|
||||||
<%if @sale_data.total_discount == 0 %>
|
<%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>
|
<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 %>
|
<%end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user