tax profiles

This commit is contained in:
phyusin
2018-03-16 10:57:32 +06:30
parent 8cea60ec02
commit acc5d737fa
9 changed files with 36 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
<%= f.error_notification %>
<div class="form-inputs p-l-15">
<%= f.input :group_type, :collection => Lookup.collection_of("tax_profiles"),:input_html=>{:class=>"col-md-10"},:required=>true %>
<%= f.input :name %>
<%= f.input :rate %>
<%= f.input :inclusive %>

View File

@@ -17,6 +17,7 @@
<table class="table">
<thead>
<tr>
<th><%= t("views.right_panel.detail.group_type") %></th>
<th><%= t("views.right_panel.detail.name") %></th>
<th><%= t("views.right_panel.detail.rate") %></th>
<th><%= t("views.right_panel.detail.inclusive") %></th>
@@ -29,6 +30,9 @@
<tbody>
<% @settings_tax_profiles.each do |settings_tax_profile| %>
<tr>
<td>
<%= settings_tax_profile.group_type %>
</td>
<td><%= settings_tax_profile.name %></td>
<td><%= settings_tax_profile.rate %></td>
<td><%= settings_tax_profile.inclusive %></td>