|
@@ -26,22 +26,22 @@
|
|
|
<%end%>
|
|
<%end%>
|
|
|
<!-- BEGIN PAGE BREADCRUMBS -->
|
|
<!-- BEGIN PAGE BREADCRUMBS -->
|
|
|
<ul class="page-breadcrumb breadcrumb">
|
|
<ul class="page-breadcrumb breadcrumb">
|
|
|
- <%= render_breadcrumbs :tag => :li, :separator => ' <i class="fa fa-circle"></i> ' %>
|
|
|
|
|
- </ul>
|
|
|
|
|
|
|
+ <%= render_breadcrumbs :tag => :li, :separator => ' <i class="fa fa-circle"></i> ' %>
|
|
|
|
|
+ </ul>
|
|
|
<!-- END PAGE BREADCRUMBS -->
|
|
<!-- END PAGE BREADCRUMBS -->
|
|
|
<!-- BEGIN PAGE CONTENT INNER -->
|
|
<!-- BEGIN PAGE CONTENT INNER -->
|
|
|
<div class="page-content-inner">
|
|
<div class="page-content-inner">
|
|
|
<div id="notice"><%= notice %></div>
|
|
<div id="notice"><%= notice %></div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
|
- <div class="portlet light">
|
|
|
|
|
|
|
+ <div class="portlet light">
|
|
|
<div class="portlet-body form">
|
|
<div class="portlet-body form">
|
|
|
- <div id="error_explanation"></div>
|
|
|
|
|
|
|
+ <div id="error_explanation"></div>
|
|
|
<!-- lista de productos -->
|
|
<!-- lista de productos -->
|
|
|
<h4 class="form-section"> Lista de productos</h4>
|
|
<h4 class="form-section"> Lista de productos</h4>
|
|
|
<div class="portlet-body">
|
|
<div class="portlet-body">
|
|
|
<div class="form-horizontal">
|
|
<div class="form-horizontal">
|
|
|
- <div class="row">
|
|
|
|
|
|
|
+ <div class="row">
|
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<!-- punto de venta -->
|
|
<!-- punto de venta -->
|
|
@@ -60,25 +60,40 @@
|
|
|
<%= label :sub_category, "", {:class=>"col-md-1 control-label"} do %>Sublínea <% end %>
|
|
<%= label :sub_category, "", {:class=>"col-md-1 control-label"} do %>Sublínea <% end %>
|
|
|
<div class="col-md-3 select2-bootstrap-prepend">
|
|
<div class="col-md-3 select2-bootstrap-prepend">
|
|
|
<%= select_tag "sub_category", options_from_collection_for_select(Category.activos.where('parent_id != 0'), :id, :category), :include_blank => "Todas", class: "form-control select2 clereable" %>
|
|
<%= select_tag "sub_category", options_from_collection_for_select(Category.activos.where('parent_id != 0'), :id, :category), :include_blank => "Todas", class: "form-control select2 clereable" %>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
- <div class="col-md-2 col-sm-3 col-xs-6 " >
|
|
|
|
|
|
|
+ <div class="col-md-3 col-sm-4 col-xs-6 " >
|
|
|
<div class="text-center well" id="container_total_prods" style="margin-bottom: 0px">
|
|
<div class="text-center well" id="container_total_prods" style="margin-bottom: 0px">
|
|
|
<div class="font-grey-mint font-sm">Total de productos </div>
|
|
<div class="font-grey-mint font-sm">Total de productos </div>
|
|
|
<div class="uppercase font-hg font-blue-sharp" id="total_prods"></div>
|
|
<div class="uppercase font-hg font-blue-sharp" id="total_prods"></div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <% if current_user.usertype == 'A' %>
|
|
|
|
|
+ <div class="col-md-3 col-sm-4 col-xs-6 ">
|
|
|
|
|
+ <div class="text-center well" id="container_total_invested" style="margin-bottom: 0px">
|
|
|
|
|
+ <div class="font-grey-mint font-sm">Total invertido en pesos </div>
|
|
|
|
|
+ <div class="uppercase font-hg font-green-sharp" id="total_invested"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="col-md-3 col-sm-4 col-xs-6 ">
|
|
|
|
|
+ <div class="text-center well" id="container_total_invested_dlls" style="margin-bottom: 0px">
|
|
|
|
|
+ <div class="font-grey-mint font-sm">Total invertido en dolares</div>
|
|
|
|
|
+ <div class="uppercase font-hg font-green-sharp" id="total_invested_dlls"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <% end %>
|
|
|
|
|
+ </div>
|
|
|
<div class='row'>
|
|
<div class='row'>
|
|
|
<div class="col-md-12">
|
|
<div class="col-md-12">
|
|
|
<h4 class="form-section" > </h4>
|
|
<h4 class="form-section" > </h4>
|
|
|
<%= render 'form_stock_printable' %>
|
|
<%= render 'form_stock_printable' %>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -96,10 +111,10 @@
|
|
|
<!-- END CONTAINER -->
|
|
<!-- END CONTAINER -->
|
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
|
$(document).on('page:change', function() {
|
|
$(document).on('page:change', function() {
|
|
|
- $(".clereable").select2({
|
|
|
|
|
|
|
+ $(".clereable").select2({
|
|
|
allowClear: true,
|
|
allowClear: true,
|
|
|
placeholder: 'Todas'
|
|
placeholder: 'Todas'
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function print() {
|
|
function print() {
|
|
@@ -114,8 +129,8 @@
|
|
|
if (sub_category) { uri += '&sub_category=' + sub_category; }
|
|
if (sub_category) { uri += '&sub_category=' + sub_category; }
|
|
|
if (search) { uri += '&search=' + encodeURIComponent(search); }
|
|
if (search) { uri += '&search=' + encodeURIComponent(search); }
|
|
|
|
|
|
|
|
- window.open('/print_stock_by_pointsale.pdf?' + uri, 'New tab', '' );
|
|
|
|
|
-
|
|
|
|
|
|
|
+ window.open('/print_stock_by_pointsale.pdf?' + uri, 'New tab', '' );
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|