Skip to content

Commit a42a81b

Browse files
feat stocks/index.html.erb: task #7
Add sku attribute
1 parent 6893c27 commit a42a81b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/views/stocks/index.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<th><%= t('stocks.total_balance') %></th>
2727
<th><%= t('stocks.total_virtual_balance') %></th>
2828
<th><%= t('stocks.product') %></th>
29+
<th><%= t('stocks.sku') %></th>
2930
<th><%= t '.actions', :default => t("helpers.actions") %></th>
3031
</tr>
3132
</thead>
@@ -36,6 +37,7 @@
3637
<td><%= stock.total_balance %></td>
3738
<td><%= stock.total_virtual_balance %></td>
3839
<td><%= stock.product.name %></td>
40+
<td><%= stock.product.sku %></td>
3941
<td>
4042
<%= link_to icon('fas fa-eye'), stock, title: t('show'), class: 'btn btn-info', data: { toggle: 'tooltip', turbo: false } %>
4143
</td>

config/locales/pt-BR.models.stocks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ pt-BR:
66
name: Nome
77
total_balance: Saldo total
88
total_virtual_balance: Saldo virtual total
9+
sku: SKU
910
product: Produto
1011
list: Lista

0 commit comments

Comments
 (0)