change some func:
This commit is contained in:
@@ -28,7 +28,13 @@
|
||||
</td>
|
||||
<td><%= item.min_order_level %></td>
|
||||
<td><%= item.max_stock_level %></td>
|
||||
<td><%= item.balance rescue '0' %></td>
|
||||
<td>
|
||||
<% if item.balance.nil? %>
|
||||
0
|
||||
<% else %>
|
||||
<%= item.balance rescue 0 %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<button type="button" data-value="<%= item.id %>" class="btn bg-blue waves-effect btn-link show_track"><%= t("views.btn.show") %> <%= t("views.right_panel.detail.stock_check") %></button>
|
||||
</td>
|
||||
|
||||
@@ -66,5 +66,9 @@
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<% if !@stock_journals.nil? && !@stock_journals.empty? %>
|
||||
<%= paginate @stock_journals %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user