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