add table to order, add numpad to order edit

This commit is contained in:
pyaephyoeaung
2022-02-21 11:20:16 +06:30
parent 02bd167fe3
commit d3395d6a37
4 changed files with 146 additions and 2 deletions

View File

@@ -120,6 +120,13 @@
<% else %>
No Tax
<% end %></strong><br>
<%if @changable_tax %>
<% if @current_user.role == 'cashier' %>
<button class="btn btn-link waves-effect bg-info access_modal" data-type = 'change_tax' >Change Tax</button>
<% else %>
<button class="btn btn-link waves-effect bg-info change_tax">Change Tax</button>
<% end %>
<% end %>
</td>
<td class="item-attr"><strong><span id="total_tax"><%= number_with_precision(@sale_data.total_tax, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i )%></span></strong></td>
</tr>