-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<div class="section-header"> | ||
<div class="d-flex justify-content-between align-items-center w-100"> | ||
<div class="d-flex align-items-center"> | ||
<h1 class="me-3">Contagem de Estoque</h1> | ||
<div class="total-balance-counter"> | ||
<h4>Total de Estoque: <span class="badge bg-primary"><%= number_with_delimiter(@total_null_balance) %></span></h4> | ||
</div> | ||
</div> | ||
<div class="d-flex gap-2"> | ||
<%= button_to null_stock_details_stocks_path(format: "csv"), | ||
class: "btn btn-success", | ||
method: :get, | ||
form: { target: '_blank' } do %> | ||
<i class="fas fa-download"></i> Exportar CSV | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="section-body"> | ||
<div class="card"> | ||
<div class="card-body"> | ||
<div class="table-responsive"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>SKU</th> | ||
<th>Saldo Físico</th> | ||
<th>Saldo Atual</th> | ||
<th>Desconto Aplicado</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<% @stock_details.each do |detail| %> | ||
<tr> | ||
<td><%= detail[:sku] %></td> | ||
<td><%= detail[:physical_balance] %></td> | ||
<td><%= detail[:actual_balance] %></td> | ||
<td> | ||
<% if detail[:discounted] %> | ||
<span class="badge bg-success">Sim</span> | ||
<% else %> | ||
<span class="badge bg-secondary">Não</span> | ||
<% end %> | ||
</td> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters