Commit cc5139b493bbba0304be43aec606777f609fbf41
1 parent
41b789f145
Exists in
master
parametros --TODO buscador clientes
Showing
2 changed files
with
15 additions
and
14 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -178,18 +178,13 @@ angular.module('focaParametros') |
| 178 | 178 | |
| 179 | 179 | $scope.seleccionarCliente = function() { |
| 180 | 180 | |
| 181 | - if (!$scope[getModulo()].vendedor) { | |
| 182 | - focaModalService.alert('Seleccione Vendedor'); | |
| 183 | - return; | |
| 184 | - } | |
| 185 | - | |
| 186 | 181 | var modalInstance = $uibModal.open( |
| 187 | 182 | { |
| 188 | 183 | ariaLabelledBy: 'Busqueda de Cliente', |
| 189 | 184 | templateUrl: 'foca-busqueda-cliente-modal.html', |
| 190 | 185 | controller: 'focaBusquedaClienteModalController', |
| 191 | 186 | resolve: { |
| 192 | - vendedor: function() { return $scope.notaPedido.vendedor; }, | |
| 187 | + vendedor: function() { return null; }, | |
| 193 | 188 | cobrador: function() { return null; } |
| 194 | 189 | }, |
| 195 | 190 | size: 'lg' |
| ... | ... | @@ -261,12 +256,12 @@ angular.module('focaParametros') |
| 261 | 256 | |
| 262 | 257 | $scope[getModulo()].domicilio = domicilio; |
| 263 | 258 | |
| 264 | - $scope[getModulo()].cliente = { | |
| 265 | - COD: cliente.cod, | |
| 266 | - CUIT: cliente.cuit, | |
| 267 | - NOM: cliente.nom, | |
| 268 | - MOD: cliente.mod | |
| 269 | - }; | |
| 259 | + $scope[getModulo()].cliente = cliente; | |
| 260 | + | |
| 261 | + $scope[getModulo()].cliente.COD = cliente.cod; | |
| 262 | + $scope[getModulo()].cliente.CUIT = cliente.cuit; | |
| 263 | + $scope[getModulo()].cliente.NOM = cliente.nom; | |
| 264 | + $scope[getModulo()].cliente.MOD = cliente.mod; | |
| 270 | 265 | |
| 271 | 266 | var domicilioStamp = |
| 272 | 267 | domicilio.Calle + ' ' + domicilio.Numero + ', ' + |
src/js/service.js
| ... | ... | @@ -37,7 +37,7 @@ angular.module('focaParametros') |
| 37 | 37 | label: 'Cliente', |
| 38 | 38 | image: 'cliente.png', |
| 39 | 39 | variable: 'cliente', |
| 40 | - modulo: [1, 2] | |
| 40 | + modulo: [1, 2, 4] | |
| 41 | 41 | }, |
| 42 | 42 | { |
| 43 | 43 | label: 'Proveedor', |
| ... | ... | @@ -55,7 +55,7 @@ angular.module('focaParametros') |
| 55 | 55 | label: 'Moneda', |
| 56 | 56 | image: 'moneda.png', |
| 57 | 57 | variable: 'cotizacion', |
| 58 | - modulo: [1, 2, 3] | |
| 58 | + modulo: [1, 2, 3, 4] | |
| 59 | 59 | }, |
| 60 | 60 | { |
| 61 | 61 | label: 'Precios y condiciones', |
| ... | ... | @@ -103,6 +103,12 @@ angular.module('focaParametros') |
| 103 | 103 | variable: 'remito' |
| 104 | 104 | }, |
| 105 | 105 | { |
| 106 | + label: 'Factura', | |
| 107 | + image: 'factura.png', | |
| 108 | + modulo: 4, | |
| 109 | + variable: 'factura' | |
| 110 | + }, | |
| 111 | + { | |
| 106 | 112 | label: 'Hoja ruta', |
| 107 | 113 | image: 'hoja-ruta.png', |
| 108 | 114 | modulo: 3, |