<commit_before><%= render :partial => 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  Peças na Caixa #<%= @stock_box.number %>
<% end %>

<%= image_tag @barcode_path %>

<table>
  <thead><tr>
    <th>SKU</th>
    <th>Nome</th>
		<th>Estoque</th>
  </tr></thead>

	<% @variants.each do |variant| %>
	<tbody>
	  <tr>
	    <td><%= variant.sku %></td>
	    <td><%= link_to variant.name, admin_product_path(variant.product), target: "_blank" %></td>
		<td><%= variant.count_on_hand %></td>
	  </tr>
	</tbody>
	<% end %>
</table>

<br />

<%= link_to 'Voltar', admin_stock_boxes_path %><commit_msg>Added print capabilities<commit_after><%= render :partial => 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  Peças na Caixa #<%= @stock_box.number %>
<% end %>

<%= image_tag @barcode_path %>

<button id="print-variants">Imprimir</button>

<table id="variant-table">
  <thead><tr>
    <th>SKU</th>
    <th>Nome</th>
		<th>Estoque</th>
  </tr></thead>

	<% @variants.each do |variant| %>
	<tbody>
	  <tr>
	    <td><%= variant.sku %></td>
	    <td><%= link_to variant.name, admin_product_path(variant.product), target: "_blank" %></td>
		<td><%= variant.count_on_hand %></td>
	  </tr>
	</tbody>
	<% end %>
</table>

<br />

<%= link_to 'Voltar', admin_stock_boxes_path %>

<script>
	$(document).ready(function() {
		$("#print-variants").on("click", function(event) {
			$("#print-variants").print();
		});
	});
</script>
{'fraction_non_alphanumeric': 0.23369565217391305, 'fraction_numerical': 0.0, 'mean_word_length': 4.0793103448275865, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7550198', 'n_tokens_mistral': 642, 'n_tokens_neox': 584, 'n_words': 103}