Commit 67099f1abb73cd4d9ebdfdb3751384e4b5e6f097
Exists in
master
Merge branch 'master' into 'master'
Master See merge request !8
Showing
3 changed files
Show diff stats
src/js/controller.js
... | ... | @@ -132,7 +132,7 @@ angular.module('focaAbmPreciosCondiciones') |
132 | 132 | |
133 | 133 | $scope.agregarPlazo = function(key) { |
134 | 134 | if(key === 13) { |
135 | - if(!$scope.plazoACargar.dias) { | |
135 | + if(!$scope.plazoACargar.dias && $scope.plazoACargar.dias !== 0) { | |
136 | 136 | focaModalService.alert('Ingrese cantidad de días'); |
137 | 137 | return; |
138 | 138 | } |
... | ... | @@ -194,6 +194,25 @@ angular.module('focaAbmPreciosCondiciones') |
194 | 194 | } |
195 | 195 | }; |
196 | 196 | |
197 | + $scope.verProductosListaPrecio = function() { | |
198 | + $uibModal.open( | |
199 | + { | |
200 | + ariaLabelledBy: 'Busqueda de Productos', | |
201 | + templateUrl: 'modal-busqueda-productos.html', | |
202 | + controller: 'modalBusquedaProductosCtrl', | |
203 | + resolve: { | |
204 | + parametroProducto: { | |
205 | + idLista: $scope.precioCondicion.listaPrecio.ID, | |
206 | + cotizacion: 1, | |
207 | + simbolo: '$', | |
208 | + soloMostrar: true | |
209 | + } | |
210 | + }, | |
211 | + size: 'md' | |
212 | + } | |
213 | + ); | |
214 | + }; | |
215 | + | |
197 | 216 | $scope.next = function(key) { |
198 | 217 | if(key === 13) $scope.focused++; |
199 | 218 | }; |
src/js/service.js
... | ... | @@ -26,7 +26,7 @@ angular.module('focaAbmPreciosCondiciones') |
26 | 26 | borrarPlazoPago: function(id) { |
27 | 27 | return $http.delete(API_ENDPOINT.URL + '/plazo-pago/' + id); |
28 | 28 | }, |
29 | - guardarPlazosPago: function(plazos){ | |
29 | + guardarPlazosPago: function(plazos) { | |
30 | 30 | return $http.post( |
31 | 31 | API_ENDPOINT.URL + '/plazos-pago', |
32 | 32 | {plazosPago: plazos} |
src/views/foca-abm-precios-condiciones-item.html
... | ... | @@ -58,6 +58,15 @@ |
58 | 58 | /> |
59 | 59 | <div class="input-group-append"> |
60 | 60 | <button |
61 | + class="btn btn-outline-secondary form-control" | |
62 | + title="Ver productos" | |
63 | + type="button" | |
64 | + ng-click="verProductosListaPrecio()" | |
65 | + ng-show="precioCondicion.listaPrecio" | |
66 | + > | |
67 | + <i class="fa fa-eye" aria-hidden="true"></i> | |
68 | + </button> | |
69 | + <button | |
61 | 70 | ladda="searchLoading" |
62 | 71 | class="btn btn-outline-secondary form-control" |
63 | 72 | title="Buscar" |