Sha256: 77143c5fc6e26b2b6bb476fc4576524ee157353d67f4e280355aad54cce99278

Contents?: true

Size: 1.72 KB

Versions: 26

Compression:

Stored size: 1.72 KB

Contents

<div class="py-2 px-4">
  <table class="table table-striped table-bordered table-hover table-sm col">
    <thead class="thead-light">
      <tr>
        <th rowspan="2" class="align-middle text-center">適用開始日</th>
        <th colspan="3" class="text-center">標準税率</th>
        <th colspan="3" class="text-center">軽減税率</th>
      </tr>
      <tr>
        <th class="text-center">消費税率(%)</th>
        <th class="text-center">地方消費税率(%)</th>
        <th class="text-center">合計(%)</th>
        <th class="text-center">消費税率(%)</th>
        <th class="text-center">地方消費税率(%)</th>
        <th class="text-center">合計(%)</th>
      </tr>
    </thead>
    <tbody>
      <% @consumption_taxes.each do |ct| %>
        <tr>
          <td class="text-center"><%= ct.valid_from %></td>
          <td class="text-center"><%= number_to_currency(ct.national_percent, unit: '', precision: 1) if ct.national_percent > 0 %></td>
          <td class="text-center"><%= number_to_currency(ct.local_percent, unit: '', precision: 1) if ct.local_percent > 0 %></td>
          <td class="text-center"><%= number_to_currency(ct.total_percent, unit: '') if ct.total_percent > 0 %></td>
          <td class="text-center"><%= number_to_currency(ct.national_reduced_percent, unit: '', precision: 2) if ct.national_reduced_percent > 0 %></td>
          <td class="text-center"><%= number_to_currency(ct.local_reduced_percent, unit: '', precision: 2) if ct.local_reduced_percent > 0 %></td>
          <td class="text-center"><%= number_to_currency(ct.total_reduced_percent, unit: '') if ct.total_reduced_percent > 0 %></td>
        </tr>
      <% end %>
   </tbody> 
  </table>
</div>

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
tax_jp-1.2.12 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.11 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.10 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.9 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.8 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.7 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.6 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.5 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.4 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.3 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.2 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.1 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.2.0 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.12 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.11 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.10 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.9 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.8 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.7 app/views/tax_jp/consumption_taxes/index.html.erb
tax_jp-1.1.6 app/views/tax_jp/consumption_taxes/index.html.erb