Commit e83e60dd3edf0f231ada004edf6ff4566ebed058

Authored by Eric Fernandez
Exists in master and in 1 other branch develop

Merge branch 'master' into 'master'

Master

See merge request !4
src/js/controller.js
... ... @@ -23,6 +23,8 @@ angular.module('focaBusquedaProductos')
23 23 $scope.currentPageProductos = [];
24 24 $scope.selectedProducto = -1;
25 25  
  26 + $scope.soloMostrar = parametroProducto.soloMostrar;
  27 +
26 28 //METODOS
27 29 $scope.busquedaPress = function(key) {
28 30 if (key === 13) {
... ... @@ -176,6 +178,8 @@ angular.module('focaBusquedaProductos')
176 178 $scope.selectedProducto = 0;
177 179 }
178 180 }
  181 +
  182 + $scope.busquedaPress(13);
179 183 }
180 184 ]
181 185 );
src/views/modal-busqueda-productos.html
1 1 <div class="modal-header py-1">
2 2 <div class="row w-100">
3 3 <div class="col-lg-6">
4   - <h5 class="modal-title my-1">Busqueda de Productos</h5>
  4 + <h5 class="modal-title my-1">Búsqueda de Productos</h5>
5 5 </div>
6 6 <div class="input-group col-lg-6 pr-0 my-2">
7 7 <input
... ... @@ -42,10 +42,10 @@
42 42 <table ng-show="primerBusqueda" class="table table-striped table-sm">
43 43 <thead>
44 44 <tr>
45   - <th>Código</th>
  45 + <th ng-hide="soloMostrar">Código</th>
46 46 <th>Descripción</th>
47 47 <th class="text-right">P. Base</th>
48   - <th></th>
  48 + <th ng-hide="soloMostrar"></th>
49 49 </tr>
50 50 </thead>
51 51 <tbody>
... ... @@ -57,7 +57,8 @@
57 57 <tr class="selectable"
58 58 ng-repeat="(key,producto) in currentPageProductos"
59 59 ng-click="select(producto)">
60   - <td ng-bind="producto.sector + '-' + producto.codigo"></td>
  60 + <td ng-bind="producto.sector + '-' + producto.codigo"
  61 + ng-hide="soloMostrar"></td>
61 62 <td ng-bind="producto.descripcion"></td>
62 63 <td class="text-right" ng-bind="producto.precio | number: 2"></td>
63 64 <td class="d-md-none text-primary">
... ... @@ -73,7 +74,8 @@
73 74 'btn-primary': selectedProducto == key
74 75 }"
75 76 foca-focus="selectedProducto == {{key}}"
76   - ng-keydown="itemProducto($event.keyCode)">
  77 + ng-keydown="itemProducto($event.keyCode)"
  78 + ng-hide="soloMostrar">
77 79 <i class="fa fa-circle-thin" aria-hidden="true"></i>
78 80 </button>
79 81 </td>