check = split btn

This commit is contained in:
phyusin
2018-02-27 11:09:28 +06:30
parent a76d0ddbcd
commit d8243afaab

View File

@@ -198,7 +198,7 @@
<th>#</th>
<th>Receipt No.</th>
<th>Total</th>
<% if !@current_user.nil? && @current_user.role == 'cashier' %>
<% if !@current_user.nil? && @current_user.role != 'waiter' %>
<th>Action</th>
<% end %>
</thead>
@@ -238,7 +238,9 @@
<div>
<button type="button" class="btn bg-default btn-block waves-effect" id="back" ><i class="material-icons">reply</i> Back </button>
<% if !@current_user.nil? && @current_user.role != 'waiter' %>
<button id="equal_split" class="btn btn-block waves-effect bg-blue">= Split</button>
<% if !@sale_data.empty? %>
<button id="equal_split" class="btn btn-block waves-effect bg-blue">= Split</button>
<% end %>
<% end %>
<% if !@orders.empty? %>
<button id="order_split" class="btn btn-block waves-effect bg-blue">By Order</button>