change some func:

This commit is contained in:
phyusin
2018-08-23 14:23:08 +06:30
parent 7e353915e3
commit e820f564ea
7 changed files with 22 additions and 4 deletions

View File

@@ -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>

View File

@@ -66,5 +66,9 @@
<% end %>
</tbody>
</table>
<br>
<% if !@stock_journals.nil? && !@stock_journals.empty? %>
<%= paginate @stock_journals %>
<% end %>
</div>
</div>