Commit c797209bd4c435360a6735c7a3b42ee9129a0112
1 parent
8774501e3d
Exists in
master
and in
1 other branch
Cambio en modal de busqueda para poder ver los detalles de cada registro.
Showing
3 changed files
with
486 additions
and
427 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -9,17 +9,20 @@ angular.module('focaBusquedaCliente') |
| 9 | 9 | $scope.vendedor = vendedor ? vendedor : {}; |
| 10 | 10 | $scope.filters = ''; |
| 11 | 11 | $scope.primerBusqueda = false; |
| 12 | - // pagination | |
| 12 | + | |
| 13 | + //#region pagination | |
| 13 | 14 | $scope.numPerPage = 10; |
| 14 | 15 | $scope.currentPage = 1; |
| 15 | 16 | $scope.filteredClientes = []; |
| 16 | 17 | $scope.currentPageClientes = []; |
| 17 | 18 | $scope.selectedClientes = -1; |
| 18 | 19 | $scope.ingreso = false; |
| 20 | + $scope.accion = ''; | |
| 19 | 21 | $scope.regexCuit = new RegExp(/\b(20|23|24|27|30|33|34)(\D)?[0-9]{8}(\D)?[0-9]/); |
| 20 | 22 | $scope.focused = 1; |
| 23 | + //#endregion | |
| 21 | 24 | |
| 22 | - $scope.cliente = { | |
| 25 | + $scope.clienteTemplate = { | |
| 23 | 26 | COD: 0, |
| 24 | 27 | ES_MAY: true, |
| 25 | 28 | cuit1: '', |
| ... | ... | @@ -50,10 +53,10 @@ angular.module('focaBusquedaCliente') |
| 50 | 53 | NOMBRE: '' |
| 51 | 54 | }, |
| 52 | 55 | cobrador: { |
| 53 | - NomVen: '' | |
| 56 | + NOM: '' | |
| 54 | 57 | } |
| 55 | - }; | |
| 56 | - | |
| 58 | + }; | |
| 59 | + $scope.cliente = angular.copy($scope.clienteTemplate); | |
| 57 | 60 | $scope.busquedaPress = function (key) { |
| 58 | 61 | if (key === 13) { |
| 59 | 62 | var funcion; |
| ... | ... | @@ -127,6 +130,56 @@ angular.module('focaBusquedaCliente') |
| 127 | 130 | } |
| 128 | 131 | }; |
| 129 | 132 | |
| 133 | + $scope.crearCliente = function () { | |
| 134 | + $scope.cliente = angular.copy($scope.clienteTemplate); | |
| 135 | + $scope.vendedor.NOM = ''; | |
| 136 | + $scope.vendedor.id = undefined; | |
| 137 | + $scope.cliente.cobrador.NOM = ''; | |
| 138 | + $scope.cliente.cobrador.ID = undefined; | |
| 139 | + $scope.accion = "Crear Cliente"; | |
| 140 | + $scope.ingreso = true; | |
| 141 | + } | |
| 142 | + | |
| 143 | + $scope.openModal = function (cliente) { | |
| 144 | + focaBusquedaClienteService.obtenerClientePorCodigo(cliente.cod) | |
| 145 | + .then(function (res) { | |
| 146 | + var data = res.data[0]; | |
| 147 | + $scope.cliente.codigo = res.data[0].COD; | |
| 148 | + $scope.cliente.NOM = data.NOM; | |
| 149 | + $scope.cliente.DOM = data.DOM; | |
| 150 | + $scope.cliente.CPO = data.CPO; | |
| 151 | + $scope.cliente.provincia.ID = data.PCX; | |
| 152 | + $scope.cliente.provincia.NOMBRE = data.PCI; | |
| 153 | + $scope.cliente.localidad.ID = data.LOX; | |
| 154 | + $scope.cliente.localidad.NOMBRE = data.LOC; | |
| 155 | + $scope.cliente.zona.ID = data.zona.ID; | |
| 156 | + $scope.cliente.zona.NOM = data.zona.NOM; | |
| 157 | + $scope.cliente.actividad.NOM = data.ACT; | |
| 158 | + $scope.cliente.cobrador.NOM = data.cobrador ? data.cobrador.NOM : ''; | |
| 159 | + $scope.cliente.cobrador.ID = data.cobrador ? data.cobrador.id : undefined; | |
| 160 | + $scope.vendedor.NOM = data.vendedor.NOM; | |
| 161 | + $scope.vendedor.id = data.vendedor.id; | |
| 162 | + $scope.cliente.MAIL = data.MAIL; | |
| 163 | + $scope.cliente.TEL = data.TEL; | |
| 164 | + $scope.cliente.iva.NOMBRE = data.iva.NOMBRE; | |
| 165 | + $scope.cliente.tipoFactura.NOMBRE = data.tipoFactura.NOMBRE; | |
| 166 | + $scope.cliente.tipoFactura.ID = data.tipoFactura.ID; | |
| 167 | + var cuit = data.CUIT.split('-'); | |
| 168 | + $scope.cliente.cuit1 = cuit[0]; | |
| 169 | + $scope.cliente.cuit2 = cuit[1]; | |
| 170 | + $scope.cliente.cuit3 = cuit[2]; | |
| 171 | + $scope.cliente.tipoComprobante.NOMBRE = data.tipoComprobante.NOMBRE; | |
| 172 | + $scope.cliente.tipoComprobante.ID = data.tipoComprobante.ID; | |
| 173 | + $scope.cliente.formaPago.NOMBRE = data.formaPago.NOMBRE; | |
| 174 | + $scope.cliente.formaPago.ID = data.formaPago.ID; | |
| 175 | + $scope.cliente.ES_PROS = data.ES_PROS; | |
| 176 | + $scope.cliente.ES_MAY = data.ES_MAY; | |
| 177 | + $scope.accion = "Cliente"; | |
| 178 | + $scope.ingreso = true; | |
| 179 | + }) | |
| 180 | + .catch(function (e) { console.log(e); }) | |
| 181 | + } | |
| 182 | + | |
| 130 | 183 | $scope.busquedaDown = function (key) { |
| 131 | 184 | if (key === 40) { |
| 132 | 185 | primera(key); |
| ... | ... | @@ -492,6 +545,7 @@ angular.module('focaBusquedaCliente') |
| 492 | 545 | }; |
| 493 | 546 | focaModalService.modal(parametrosModal).then( |
| 494 | 547 | function (vendedor) { |
| 548 | + console.log("vendedor seleccionado => ", vendedor); | |
| 495 | 549 | $scope.vendedor = vendedor; |
| 496 | 550 | }, function () { |
| 497 | 551 | // funcion ejecutada cuando se cancela el modal |
| ... | ... | @@ -564,6 +618,8 @@ angular.module('focaBusquedaCliente') |
| 564 | 618 | return; |
| 565 | 619 | } |
| 566 | 620 | |
| 621 | + $scope.cliente.actividad.ID = parseInt($scope.cliente.actividad.ID); | |
| 622 | + | |
| 567 | 623 | var cliente = crearCopia(); |
| 568 | 624 | |
| 569 | 625 | focaBusquedaClienteService |
| ... | ... | @@ -590,7 +646,7 @@ angular.module('focaBusquedaCliente') |
| 590 | 646 | cliente.TIP = cliente.tipoFactura.ID; |
| 591 | 647 | cliente.TCO = cliente.tipoComprobante.ID; |
| 592 | 648 | cliente.FPA = cliente.formaPago.ID; |
| 593 | - cliente.VEN = vendedor.ID; | |
| 649 | + cliente.VEN = $scope.vendedor.id; | |
| 594 | 650 | cliente.CUIT = cliente.cuit1 + cliente.cuit2 + cliente.cuit3; |
| 595 | 651 | cliente.idCobrador = cliente.cobrador.ID; |
| 596 | 652 | |
| ... | ... | @@ -610,6 +666,7 @@ angular.module('focaBusquedaCliente') |
| 610 | 666 | return cliente; |
| 611 | 667 | } |
| 612 | 668 | |
| 669 | + //#region PAGINADOR | |
| 613 | 670 | function calcularPages(paginaActual) { |
| 614 | 671 | var paginas = []; |
| 615 | 672 | paginas.push(paginaActual); |
| ... | ... | @@ -673,6 +730,8 @@ angular.module('focaBusquedaCliente') |
| 673 | 730 | $scope.selectedClientes = 0; |
| 674 | 731 | } |
| 675 | 732 | } |
| 733 | + //#endregion | |
| 734 | + | |
| 676 | 735 | function validateEmails(emails) { |
| 677 | 736 | var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; |
| 678 | 737 | var arr = emails.split(','); |
src/js/service.js
| ... | ... | @@ -13,6 +13,9 @@ angular.module('focaBusquedaCliente') |
| 13 | 13 | return $http.post(API_ENDPOINT.URL + '/cliente/listar', |
| 14 | 14 | { nombreOCuit: nombreOCuit }); |
| 15 | 15 | }, |
| 16 | + obtenerClientePorCodigo: function (cod) { | |
| 17 | + return $http.get(API_ENDPOINT.URL + '/cliente-codigo/' + cod ); | |
| 18 | + }, | |
| 16 | 19 | guardarCliente: function (cliente) { |
| 17 | 20 | return $http.post(API_ENDPOINT.URL + '/cliente', { cliente: cliente }); |
| 18 | 21 | } |
src/views/foca-busqueda-cliente-modal.html
| ... | ... | @@ -2,11 +2,12 @@ |
| 2 | 2 | <div class="row w-100"> |
| 3 | 3 | <div class="col-lg-4 col-7"> |
| 4 | 4 | <h5 class="modal-title my-1" ng-hide="ingreso">Bรบsqueda de Cliente</h5> |
| 5 | - <h5 class="modal-title my-1" ng-show="ingreso">Crear Cliente</h5> | |
| 5 | + <h5 class="modal-title my-1" ng-show="ingreso">{{accion}}</h5> | |
| 6 | 6 | </div> |
| 7 | 7 | <div ng-show="ingreso" class="col-lg-6 col-5 front-index"> |
| 8 | 8 | <div class="custom-control custom-checkbox mt-2"> |
| 9 | - <input | |
| 9 | + <input | |
| 10 | + ng-disabled="accion == 'Cliente'" | |
| 10 | 11 | type="checkbox" |
| 11 | 12 | class="custom-control-input" |
| 12 | 13 | id="checkProspecto" |
| ... | ... | @@ -17,7 +18,7 @@ |
| 17 | 18 | <div class="input-group col-lg-6 offset-lg-2 pr-0 my-2"> |
| 18 | 19 | <button |
| 19 | 20 | class="btn btn-outline-debo mr-2" |
| 20 | - ng-click="ingreso = true" | |
| 21 | + ng-click="crearCliente()" | |
| 21 | 22 | ng-show="!ingreso" |
| 22 | 23 | title="Nuevo"> |
| 23 | 24 | <i class="fa fa-plus" aria-hidden="true"></i> |
| ... | ... | @@ -82,7 +83,7 @@ |
| 82 | 83 | <tr |
| 83 | 84 | class="selectable" |
| 84 | 85 | ng-repeat="(key, cliente) in currentPageClientes" |
| 85 | - ng-click="select(cliente)"> | |
| 86 | + > | |
| 86 | 87 | <td ng-bind="('00000'+cliente.cod).slice(-5)"></td> |
| 87 | 88 | <td ng-bind="cliente.nom"></td> |
| 88 | 89 | <td ng-bind="cliente.cuit"></td> |
| ... | ... | @@ -90,7 +91,7 @@ |
| 90 | 91 | <button |
| 91 | 92 | type="button" |
| 92 | 93 | class="btn btn-xs p-1" |
| 93 | - ng-click="" | |
| 94 | + ng-click="openModal(cliente)" | |
| 94 | 95 | ><i class="fa fa-eye"></i> |
| 95 | 96 | </button> |
| 96 | 97 | </td> |
| ... | ... | @@ -114,21 +115,22 @@ |
| 114 | 115 | </table> |
| 115 | 116 | |
| 116 | 117 | <form name="formCliente"> |
| 117 | - <uib-tabset class="tabs-right" ng-show="ingreso"> | |
| 118 | - <uib-tab heading="Datos cliente"> | |
| 119 | - <div class="row"> | |
| 120 | - <div class="col-3 mt-2"> | |
| 121 | - <label>Cรณdigo</label> | |
| 122 | - <input | |
| 118 | + <fieldset ng-disabled="accion == 'Cliente'"> | |
| 119 | + <uib-tabset class="tabs-right" ng-show="ingreso"> | |
| 120 | + <uib-tab heading="Datos cliente"> | |
| 121 | + <div class="row"> | |
| 122 | + <div class="col-3 mt-2"> | |
| 123 | + <label>Cรณdigo</label> | |
| 124 | + <input | |
| 123 | 125 | type="text" |
| 124 | 126 | class="form-control form-control-sm" |
| 125 | 127 | ng-model="cliente.codigo" |
| 126 | 128 | readonly |
| 127 | - /> | |
| 128 | - </div> | |
| 129 | - <div class="col-9 mt-2"> | |
| 130 | - <label>Nombre</label> | |
| 131 | - <input | |
| 129 | + /> | |
| 130 | + </div> | |
| 131 | + <div class="col-9 mt-2"> | |
| 132 | + <label>Nombre</label> | |
| 133 | + <input | |
| 132 | 134 | type="text" |
| 133 | 135 | class="form-control form-control-sm" |
| 134 | 136 | ng-model="cliente.NOM" |
| ... | ... | @@ -138,13 +140,13 @@ |
| 138 | 140 | foca-focus="focused == 1 || ingreso" |
| 139 | 141 | ng-focus="focus(1)" |
| 140 | 142 | ng-keypress="next($event.keyCode)" |
| 141 | - /> | |
| 143 | + /> | |
| 144 | + </div> | |
| 142 | 145 | </div> |
| 143 | - </div> | |
| 144 | - <div class="row"> | |
| 145 | - <div class="col-md-9 col-12 mt-2"> | |
| 146 | - <label>Domicilio</label> | |
| 147 | - <input | |
| 146 | + <div class="row"> | |
| 147 | + <div class="col-md-9 col-12 mt-2"> | |
| 148 | + <label>Domicilio</label> | |
| 149 | + <input | |
| 148 | 150 | type="text" |
| 149 | 151 | class="form-control form-control-sm" |
| 150 | 152 | ng-model="cliente.DOM" |
| ... | ... | @@ -154,11 +156,11 @@ |
| 154 | 156 | ng-focus="focus(2)" |
| 155 | 157 | foca-focus="focused == 2" |
| 156 | 158 | ng-keypress="next($event.keyCode)" |
| 157 | - /> | |
| 158 | - </div> | |
| 159 | - <div class="col-md-3 col-12 mt-2"> | |
| 160 | - <label>Cรณdigo postal</label> | |
| 161 | - <input | |
| 159 | + /> | |
| 160 | + </div> | |
| 161 | + <div class="col-md-3 col-12 mt-2"> | |
| 162 | + <label>Cรณdigo postal</label> | |
| 163 | + <input | |
| 162 | 164 | type="text" |
| 163 | 165 | class="form-control form-control-sm" |
| 164 | 166 | ng-model="cliente.CPO" |
| ... | ... | @@ -168,449 +170,431 @@ |
| 168 | 170 | foca-focus="focused == 3" |
| 169 | 171 | ng-keypress="next($event.keyCode)" |
| 170 | 172 | teclado-virtual |
| 171 | - /> | |
| 172 | - </div> | |
| 173 | - </div> | |
| 174 | - <div class="row"> | |
| 175 | - <div class="col-md-6 col-12 mt-2"> | |
| 176 | - <label>Provincia</label> | |
| 177 | - <div class="input-group"> | |
| 178 | - <input | |
| 179 | - type="text" | |
| 180 | - class="form-control form-control-sm" | |
| 181 | - ng-model="cliente.provincia.NOMBRE" | |
| 182 | - ng-keypress="seleccionarProvincia($event.keyCode)" | |
| 183 | - placeholder="Seleccione provincia" | |
| 184 | - ng-required="true" | |
| 185 | - ng-focus="focus(4)" | |
| 186 | - foca-focus="focused == 4" | |
| 187 | - teclado-virtual | |
| 188 | 173 | /> |
| 189 | - <button | |
| 190 | - ng-show="cliente.provincia.NOMBRE.length >= 1" | |
| 191 | - type="button" | |
| 192 | - class="clear-input" | |
| 193 | - ng-click="cliente.provincia.NOMBRE = ''" | |
| 194 | - > | |
| 195 | - <i class="fa fa-times"></i> | |
| 196 | - </button> | |
| 197 | - <div class="input-group-append"> | |
| 198 | - <button | |
| 199 | - ladda="searchLoading" | |
| 200 | - class="btn btn-outline-secondary" | |
| 174 | + </div> | |
| 175 | + </div> | |
| 176 | + <div class="row"> | |
| 177 | + <div class="col-md-6 col-12 mt-2"> | |
| 178 | + <label>Provincia</label> | |
| 179 | + <div class="input-group"> | |
| 180 | + <input | |
| 181 | + type="text" | |
| 182 | + class="form-control form-control-sm" | |
| 183 | + ng-model="cliente.provincia.NOMBRE" | |
| 184 | + ng-keypress="seleccionarProvincia($event.keyCode)" | |
| 185 | + placeholder="Seleccione provincia" | |
| 186 | + ng-required="true" | |
| 187 | + ng-focus="focus(4)" | |
| 188 | + foca-focus="focused == 4" | |
| 189 | + teclado-virtual | |
| 190 | + /> | |
| 191 | + <button | |
| 192 | + ng-show="cliente.provincia.NOMBRE !== ''" | |
| 201 | 193 | type="button" |
| 202 | - ng-click="seleccionarProvincia(13)" | |
| 203 | - > | |
| 204 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 194 | + class="clear-input" | |
| 195 | + ng-click= | |
| 196 | + "cliente.provincia.NOMBRE = ''; | |
| 197 | + cliente.provincia.ID = undefined" | |
| 198 | + ><i class="fa fa-times"></i> | |
| 205 | 199 | </button> |
| 200 | + <div class="input-group-append"> | |
| 201 | + <button | |
| 202 | + ladda="searchLoading" | |
| 203 | + class="btn btn-outline-secondary" | |
| 204 | + type="button" | |
| 205 | + ng-click="seleccionarProvincia(13)" | |
| 206 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 207 | + </button> | |
| 208 | + </div> | |
| 206 | 209 | </div> |
| 207 | 210 | </div> |
| 208 | - </div> | |
| 209 | - <div class="col-md-6 col-12 mt-2"> | |
| 210 | - <label>Localidad</label> | |
| 211 | - <div class="input-group"> | |
| 212 | - <input | |
| 213 | - type="text" | |
| 214 | - class="form-control form-control-sm" | |
| 215 | - ng-model="cliente.localidad.NOMBRE" | |
| 216 | - ng-keypress="seleccionarLocalidad($event.keyCode)" | |
| 217 | - placeholder="Seleccione localidad" | |
| 218 | - ng-required="true" | |
| 219 | - foca-focus="focused == 5" | |
| 220 | - ng-focus="focus(5)" | |
| 221 | - teclado-virtual | |
| 222 | - /> | |
| 223 | - <button | |
| 224 | - ng-show="cliente.localidad.NOMBRE.length >= 1" | |
| 225 | - type="button" | |
| 226 | - class="clear-input" | |
| 227 | - ng-click="cliente.localidad.NOMBRE = ''" | |
| 228 | - > | |
| 229 | - <i class="fa fa-times"></i> | |
| 230 | - </button> | |
| 231 | - <div class="input-group-append"> | |
| 232 | - <button | |
| 233 | - ladda="searchLoading" | |
| 234 | - class="btn btn-outline-secondary" | |
| 211 | + <div class="col-md-6 col-12 mt-2"> | |
| 212 | + <label>Localidad</label> | |
| 213 | + <div class="input-group"> | |
| 214 | + <input | |
| 215 | + type="text" | |
| 216 | + class="form-control form-control-sm" | |
| 217 | + ng-model="cliente.localidad.NOMBRE" | |
| 218 | + ng-keypress="seleccionarLocalidad($event.keyCode)" | |
| 219 | + placeholder="Seleccione localidad" | |
| 220 | + ng-required="true" | |
| 221 | + foca-focus="focused == 5" | |
| 222 | + ng-focus="focus(5)" | |
| 223 | + teclado-virtual | |
| 224 | + /> | |
| 225 | + <button | |
| 226 | + ng-show="cliente.localidad.NOMBRE !== ''" | |
| 235 | 227 | type="button" |
| 236 | - ng-click="seleccionarLocalidad(13)" | |
| 237 | - > | |
| 238 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 228 | + class="clear-input" | |
| 229 | + ng-click="cliente.localidad.NOMBRE = ''" | |
| 230 | + ><i class="fa fa-times"></i> | |
| 239 | 231 | </button> |
| 232 | + <div class="input-group-append"> | |
| 233 | + <button | |
| 234 | + ladda="searchLoading" | |
| 235 | + class="btn btn-outline-secondary" | |
| 236 | + type="button" | |
| 237 | + ng-click="seleccionarLocalidad(13)" | |
| 238 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 239 | + </button> | |
| 240 | + </div> | |
| 240 | 241 | </div> |
| 241 | 242 | </div> |
| 242 | 243 | </div> |
| 243 | - </div> | |
| 244 | - <div class="row"> | |
| 245 | - <div class="col-md-6 col-12 mt-2"> | |
| 246 | - <label>Zona</label> | |
| 247 | - <div class="input-group"> | |
| 248 | - <input | |
| 249 | - type="text" | |
| 250 | - class="form-control form-control-sm" | |
| 251 | - ng-model="cliente.zona.NOM" | |
| 252 | - ng-keypress="seleccionarZona($event.keyCode)" | |
| 253 | - placeholder="Seleccione zona" | |
| 254 | - ng-required="true" | |
| 255 | - ng-focus="focus(6)" | |
| 256 | - foca-focus="focused == 6" | |
| 257 | - teclado-virtual | |
| 258 | - /> | |
| 259 | - <button | |
| 260 | - ng-show="cliente.zona.NOM.length >= 1" | |
| 261 | - type="button" | |
| 262 | - class="clear-input" | |
| 263 | - ng-click="cliente.zona.NOM = ''" | |
| 264 | - > | |
| 265 | - <i class="fa fa-times"></i> | |
| 266 | - </button> | |
| 267 | - <div class="input-group-append"> | |
| 268 | - <button | |
| 269 | - ladda="searchLoading" | |
| 270 | - class="btn btn-outline-secondary" | |
| 244 | + <div class="row"> | |
| 245 | + <div class="col-md-6 col-12 mt-2"> | |
| 246 | + <label>Zona</label> | |
| 247 | + <div class="input-group"> | |
| 248 | + <input | |
| 249 | + type="text" | |
| 250 | + class="form-control form-control-sm" | |
| 251 | + ng-model="cliente.zona.NOM" | |
| 252 | + ng-keypress="seleccionarZona($event.keyCode)" | |
| 253 | + placeholder="Seleccione zona" | |
| 254 | + ng-required="true" | |
| 255 | + ng-focus="focus(6)" | |
| 256 | + foca-focus="focused == 6" | |
| 257 | + teclado-virtual | |
| 258 | + /> | |
| 259 | + <button | |
| 260 | + ng-show="cliente.zona.NOM !== ''" | |
| 271 | 261 | type="button" |
| 272 | - ng-click="seleccionarZona(13)" | |
| 273 | - > | |
| 274 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 262 | + class="clear-input" | |
| 263 | + ng-click="cliente.zona.NOM = ''" | |
| 264 | + ><i class="fa fa-times"></i> | |
| 275 | 265 | </button> |
| 266 | + <div class="input-group-append"> | |
| 267 | + <button | |
| 268 | + ladda="searchLoading" | |
| 269 | + class="btn btn-outline-secondary" | |
| 270 | + type="button" | |
| 271 | + ng-click="seleccionarZona(13)" | |
| 272 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 273 | + </button> | |
| 274 | + </div> | |
| 276 | 275 | </div> |
| 277 | 276 | </div> |
| 278 | - </div> | |
| 279 | - <div class="col-md-6 col-12 mt-2"> | |
| 280 | - <label> Actividad </label> | |
| 281 | - <div class="input-group"> | |
| 282 | - <input | |
| 283 | - type="text" | |
| 284 | - class="form-control form-control-sm" | |
| 285 | - ng-model="cliente.actividad.NOM" | |
| 286 | - ng-keypress="seleccionarActividad($event.keyCode)" | |
| 287 | - placeholder="Seleccione actividad" | |
| 288 | - ng-required="true" | |
| 289 | - ng-focus="focus(7)" | |
| 290 | - foca-focus="focused == 7" | |
| 291 | - teclado-virtual | |
| 292 | - /> | |
| 293 | - <button | |
| 294 | - ng-show="cliente.actividad.NOM.length >= 1" | |
| 295 | - type="button" | |
| 296 | - class="clear-input" | |
| 297 | - ng-click="cliente.actividad.NOM = ''" | |
| 298 | - > | |
| 299 | - <i class="fa fa-times"></i> | |
| 300 | - </button> | |
| 301 | - <div class="input-group-append"> | |
| 302 | - <button | |
| 303 | - ladda="searchLoading" | |
| 304 | - class="btn btn-outline-secondary" | |
| 277 | + <div class="col-md-6 col-12 mt-2"> | |
| 278 | + <label> Actividad </label> | |
| 279 | + <div class="input-group"> | |
| 280 | + <input | |
| 281 | + type="text" | |
| 282 | + class="form-control form-control-sm" | |
| 283 | + ng-model="cliente.actividad.NOM" | |
| 284 | + ng-keypress="seleccionarActividad($event.keyCode)" | |
| 285 | + placeholder="Seleccione actividad" | |
| 286 | + ng-required="true" | |
| 287 | + ng-focus="focus(7)" | |
| 288 | + foca-focus="focused == 7" | |
| 289 | + teclado-virtual | |
| 290 | + /> | |
| 291 | + <button | |
| 292 | + ng-show="cliente.actividad.NOM !== ''" | |
| 305 | 293 | type="button" |
| 306 | - ng-click="seleccionarActividad(13)" | |
| 307 | - > | |
| 308 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 294 | + class="clear-input" | |
| 295 | + ng-click="cliente.actividad.NOM = ''" | |
| 296 | + ><i class="fa fa-times"></i> | |
| 309 | 297 | </button> |
| 298 | + <div class="input-group-append"> | |
| 299 | + <button | |
| 300 | + ladda="searchLoading" | |
| 301 | + class="btn btn-outline-secondary" | |
| 302 | + type="button" | |
| 303 | + ng-click="seleccionarActividad(13)" | |
| 304 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 305 | + </button> | |
| 306 | + </div> | |
| 310 | 307 | </div> |
| 311 | 308 | </div> |
| 312 | 309 | </div> |
| 313 | - </div> | |
| 314 | - <div class="row"> | |
| 315 | - <div class="col-md-6 col-12 mt-2"> | |
| 316 | - <label>Cobrador</label> | |
| 317 | - <div class="input-group"> | |
| 318 | - <input | |
| 319 | - type="text" | |
| 320 | - class="form-control form-control-sm" | |
| 321 | - ng-model="cliente.cobrador.NOM" | |
| 322 | - ng-keypress="seleccionarCobrador($event.keyCode)" | |
| 323 | - placeholder="Seleccione cobrador" | |
| 324 | - ng-focus="focus(8)" | |
| 325 | - foca-focus="focused == 8" | |
| 326 | - teclado-virtual | |
| 327 | - /> | |
| 328 | - <button | |
| 329 | - ng-show="cliente.cobrador.NOM.length >= 1" | |
| 330 | - type="button" | |
| 331 | - class="clear-input" | |
| 332 | - ng-click="cliente.cobrador.NOM = ''" | |
| 333 | - > | |
| 334 | - <i class="fa fa-times"></i> | |
| 335 | - </button> | |
| 336 | - <div class="input-group-append"> | |
| 337 | - <button | |
| 338 | - ladda="searchLoading" | |
| 339 | - class="btn btn-outline-secondary" | |
| 310 | + <div class="row"> | |
| 311 | + <div class="col-md-6 col-12 mt-2"> | |
| 312 | + <label>Cobrador</label> | |
| 313 | + <div class="input-group"> | |
| 314 | + <input | |
| 315 | + type="text" | |
| 316 | + class="form-control form-control-sm" | |
| 317 | + ng-model="cliente.cobrador.NOM" | |
| 318 | + ng-keypress="seleccionarCobrador($event.keyCode)" | |
| 319 | + placeholder="Seleccione cobrador" | |
| 320 | + ng-focus="focus(8)" | |
| 321 | + foca-focus="focused == 8" | |
| 322 | + teclado-virtual | |
| 323 | + /> | |
| 324 | + <button | |
| 325 | + ng-show="cliente.cobrador.NOM !== ''" | |
| 340 | 326 | type="button" |
| 341 | - ng-click="seleccionarCobrador(13)" | |
| 342 | - > | |
| 343 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 327 | + class="clear-input" | |
| 328 | + ng-click="cliente.cobrador.NOM = ''" | |
| 329 | + ><i class="fa fa-times"></i> | |
| 344 | 330 | </button> |
| 331 | + <div class="input-group-append"> | |
| 332 | + <button | |
| 333 | + ladda="searchLoading" | |
| 334 | + class="btn btn-outline-secondary" | |
| 335 | + type="button" | |
| 336 | + ng-click="seleccionarCobrador(13)" | |
| 337 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 338 | + </button> | |
| 339 | + </div> | |
| 345 | 340 | </div> |
| 346 | 341 | </div> |
| 347 | - </div> | |
| 348 | - <div class="col-md-6 col-12 mt-2"> | |
| 349 | - <label>Vendedor</label> | |
| 350 | - <div class="input-group"> | |
| 351 | - <input | |
| 352 | - type="text" | |
| 353 | - class="form-control form-control-sm" | |
| 354 | - ng-model="vendedor.NOM" | |
| 355 | - ng-keypress="seleccionarVendedor($event.keyCode)" | |
| 356 | - placeholder="Seleccione vendedor" | |
| 357 | - ng-focus="focus(9)" | |
| 358 | - foca-focus="focused == 9" | |
| 359 | - teclado-virtual | |
| 360 | - /> | |
| 361 | - <button | |
| 362 | - ng-show="vendedor.NOM.length >= 1" | |
| 363 | - type="button" | |
| 364 | - class="clear-input" | |
| 365 | - ng-click="vendedor.NOM = ''" | |
| 366 | - > | |
| 367 | - <i class="fa fa-times"></i> | |
| 368 | - </button> | |
| 369 | - <div class="input-group-append"> | |
| 342 | + <div class="col-md-6 col-12 mt-2"> | |
| 343 | + <label>Vendedor</label> | |
| 344 | + <div class="input-group"> | |
| 345 | + <input | |
| 346 | + type="text" | |
| 347 | + class="form-control form-control-sm" | |
| 348 | + ng-model="vendedor.NOM" | |
| 349 | + ng-keypress="seleccionarVendedor($event.keyCode)" | |
| 350 | + placeholder="Seleccione vendedor" | |
| 351 | + ng-focus="focus(9)" | |
| 352 | + foca-focus="focused == 9" | |
| 353 | + teclado-virtual | |
| 354 | + /> | |
| 370 | 355 | <button |
| 371 | - ladda="searchLoading" | |
| 372 | - class="btn btn-outline-secondary" | |
| 356 | + ng-show="vendedor.NOM !== ''" | |
| 373 | 357 | type="button" |
| 374 | - ng-click="seleccionarVendedor(13)" | |
| 375 | - > | |
| 376 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 358 | + class="clear-input" | |
| 359 | + ng-click="vendedor.NOM = ''" | |
| 360 | + ><i class="fa fa-times"></i> | |
| 377 | 361 | </button> |
| 362 | + <div class="input-group-append"> | |
| 363 | + <button | |
| 364 | + ladda="searchLoading" | |
| 365 | + class="btn btn-outline-secondary" | |
| 366 | + type="button" | |
| 367 | + ng-click="seleccionarVendedor(13)" | |
| 368 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 369 | + </button> | |
| 370 | + </div> | |
| 378 | 371 | </div> |
| 379 | 372 | </div> |
| 380 | - </div> | |
| 381 | - <div class="col-md-6 col-12 mt-2"> | |
| 382 | - <label>Email</label> | |
| 383 | - <div class="input-group"> | |
| 384 | - <input | |
| 385 | - type="text" | |
| 386 | - class="form-control form-control-sm" | |
| 387 | - placeholder="Ingrese Email" | |
| 388 | - ng-model="cliente.MAIL" | |
| 389 | - ng-required="true" | |
| 390 | - ng-keypress="next($event.keyCode)" | |
| 391 | - ng-focus="focus(10)" | |
| 392 | - foca-focus="focused == 10" | |
| 393 | - teclado-virtual> | |
| 373 | + <div class="col-md-6 col-12 mt-2"> | |
| 374 | + <label>Email</label> | |
| 375 | + <div class="input-group"> | |
| 376 | + <input | |
| 377 | + type="text" | |
| 378 | + class="form-control form-control-sm" | |
| 379 | + placeholder="Ingrese Email" | |
| 380 | + ng-model="cliente.MAIL" | |
| 381 | + ng-required="true" | |
| 382 | + ng-keypress="next($event.keyCode)" | |
| 383 | + ng-focus="focus(10)" | |
| 384 | + foca-focus="focused == 10" | |
| 385 | + teclado-virtual> | |
| 386 | + </div> | |
| 394 | 387 | </div> |
| 395 | - </div> | |
| 396 | - <div class="col-md-6 col-12 mt-2"> | |
| 397 | - <label>Telefono</label> | |
| 398 | - <div class="input-group"> | |
| 399 | - <input | |
| 400 | - foca-tipo-input | |
| 401 | - limite-numeros-max="20" | |
| 402 | - class="form-control form-control-sm" | |
| 403 | - placeholder="Ingrese Telefono" | |
| 404 | - ng-model="cliente.TEL" | |
| 405 | - ng-required="true" | |
| 406 | - ng-keypress="next($event.keyCode)" | |
| 407 | - ng-focus="focus(11)" | |
| 408 | - foca-focus="focused == 11" | |
| 409 | - teclado-virtual> | |
| 388 | + <div class="col-md-6 col-12 mt-2"> | |
| 389 | + <label>Telefono</label> | |
| 390 | + <div class="input-group"> | |
| 391 | + <input | |
| 392 | + foca-tipo-input | |
| 393 | + limite-numeros-max="20" | |
| 394 | + class="form-control form-control-sm" | |
| 395 | + placeholder="Ingrese Telefono" | |
| 396 | + ng-model="cliente.TEL" | |
| 397 | + ng-required="true" | |
| 398 | + ng-keypress="next($event.keyCode)" | |
| 399 | + ng-focus="focus(11)" | |
| 400 | + foca-focus="focused == 11" | |
| 401 | + teclado-virtual> | |
| 402 | + </div> | |
| 410 | 403 | </div> |
| 411 | 404 | </div> |
| 412 | - </div> | |
| 413 | - <div class="row"> | |
| 414 | - <div class="col-6 d-flex mt-3"> | |
| 415 | - <div class="custom-control custom-checkbox mt-auto"> | |
| 416 | - <input | |
| 417 | - type="checkbox" | |
| 418 | - class="custom-control-input" | |
| 419 | - id="checkDistribuidor" | |
| 420 | - ng-model="cliente.ES_MAY" | |
| 421 | - checked | |
| 422 | - disabled="disabled"> | |
| 423 | - <label class="custom-control-label" for="checkDistribuidor">ยฟEste cliente es distribuidor?</label> | |
| 405 | + <div class="row"> | |
| 406 | + <div class="col-6 d-flex mt-3"> | |
| 407 | + <div class="custom-control custom-checkbox mt-auto"> | |
| 408 | + <input | |
| 409 | + type="checkbox" | |
| 410 | + class="custom-control-input" | |
| 411 | + id="checkDistribuidor" | |
| 412 | + ng-model="cliente.ES_MAY" | |
| 413 | + checked | |
| 414 | + disabled="disabled"> | |
| 415 | + <label class="custom-control-label" for="checkDistribuidor">ยฟEste cliente es distribuidor?</label> | |
| 416 | + </div> | |
| 424 | 417 | </div> |
| 425 | 418 | </div> |
| 426 | - </div> | |
| 427 | - </uib-tab> | |
| 428 | - <uib-tab heading="Datos impositivos"> | |
| 429 | - <div class="row"> | |
| 430 | - <div class="col-md-7 col-12 mt-2"> | |
| 431 | - <label>Responsabilidad ante el IVA</label> | |
| 432 | - <div class="input-group"> | |
| 433 | - <input | |
| 434 | - type="text" | |
| 435 | - class="form-control form-control-sm" | |
| 436 | - placeholder="Seleccione responsabilidad ante el IVA" | |
| 437 | - ng-model="cliente.iva.NOMBRE" | |
| 438 | - ng-keypress="seleccionarIva($event.keyCode)" | |
| 439 | - ng-required="true" | |
| 440 | - ng-focus="focus(12)" | |
| 441 | - foca-focus="focused == 12" | |
| 442 | - teclado-virtual | |
| 443 | - /> | |
| 444 | - <button | |
| 445 | - ng-show="cliente.iva.NOMBRE.length >= 1" | |
| 446 | - type="button" | |
| 447 | - class="clear-input" | |
| 448 | - ng-click="cliente.iva.NOMBRE = ''" | |
| 449 | - > | |
| 450 | - <i class="fa fa-times"></i> | |
| 451 | - </button> | |
| 452 | - <div class="input-group-append"> | |
| 453 | - <button | |
| 454 | - ladda="searchLoading" | |
| 455 | - class="btn btn-outline-secondary" | |
| 419 | + </uib-tab> | |
| 420 | + <uib-tab heading="Datos impositivos"> | |
| 421 | + <div class="row"> | |
| 422 | + <div class="col-md-7 col-12 mt-2"> | |
| 423 | + <label>Responsabilidad ante el IVA</label> | |
| 424 | + <div class="input-group"> | |
| 425 | + <input | |
| 426 | + type="text" | |
| 427 | + class="form-control form-control-sm" | |
| 428 | + placeholder="Seleccione responsabilidad ante el IVA" | |
| 429 | + ng-model="cliente.iva.NOMBRE" | |
| 430 | + ng-keypress="seleccionarIva($event.keyCode)" | |
| 431 | + ng-required="true" | |
| 432 | + ng-focus="focus(12)" | |
| 433 | + foca-focus="focused == 12" | |
| 434 | + teclado-virtual | |
| 435 | + /> | |
| 436 | + <button | |
| 437 | + ng-show="cliente.iva.NOMBRE !== ''" | |
| 456 | 438 | type="button" |
| 457 | - ng-click="seleccionarIva(13)" | |
| 458 | - > | |
| 459 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 439 | + class="clear-input" | |
| 440 | + ng-click="cliente.iva.NOMBRE = ''" | |
| 441 | + ><i class="fa fa-times"></i> | |
| 460 | 442 | </button> |
| 443 | + <div class="input-group-append"> | |
| 444 | + <button | |
| 445 | + ladda="searchLoading" | |
| 446 | + class="btn btn-outline-secondary" | |
| 447 | + type="button" | |
| 448 | + ng-click="seleccionarIva(13)" | |
| 449 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 450 | + </button> | |
| 451 | + </div> | |
| 461 | 452 | </div> |
| 462 | 453 | </div> |
| 463 | - </div> | |
| 464 | - <div class="col-md-5 col-12 mt-2"> | |
| 465 | - <label>Factura que emite</label> | |
| 466 | - <div class="input-group"> | |
| 467 | - <input | |
| 468 | - type="text" | |
| 469 | - class="form-control form-control-sm" | |
| 470 | - placeholder="Seleccione factura que emite" | |
| 471 | - ng-model="cliente.tipoFactura.NOMBRE" | |
| 472 | - ng-required="true" | |
| 473 | - ng-keypress="seleccionarTipoFactura(13)" | |
| 474 | - ng-focus="focus(13)" | |
| 475 | - foca-focus="focused == 13" | |
| 476 | - teclado-virtual> | |
| 477 | - <button | |
| 478 | - ng-show="cliente.tipoFactura.NOMBRE.length >= 1" | |
| 479 | - type="button" | |
| 480 | - class="clear-input" | |
| 481 | - ng-click="cliente.tipoFactura.NOMBRE = ''" | |
| 482 | - > | |
| 483 | - <i class="fa fa-times"></i> | |
| 484 | - </button> | |
| 485 | - <div class="input-group-append"> | |
| 486 | - <button | |
| 487 | - ladda="searchLoading" | |
| 488 | - class="btn btn-outline-secondary" | |
| 454 | + <div class="col-md-5 col-12 mt-2"> | |
| 455 | + <label>Factura que emite</label> | |
| 456 | + <div class="input-group"> | |
| 457 | + <input | |
| 458 | + type="text" | |
| 459 | + class="form-control form-control-sm" | |
| 460 | + placeholder="Seleccione factura que emite" | |
| 461 | + ng-model="cliente.tipoFactura.NOMBRE" | |
| 462 | + ng-required="true" | |
| 463 | + ng-keypress="seleccionarTipoFactura(13)" | |
| 464 | + ng-focus="focus(13)" | |
| 465 | + foca-focus="focused == 13" | |
| 466 | + teclado-virtual> | |
| 467 | + <button | |
| 468 | + ng-show="cliente.tipoFactura.NOMBRE !== ''" | |
| 489 | 469 | type="button" |
| 490 | - ng-click="seleccionarTipoFactura(13)" | |
| 491 | - > | |
| 492 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 470 | + class="clear-input" | |
| 471 | + ng-click="cliente.tipoFactura.NOMBRE = ''" | |
| 472 | + ><i class="fa fa-times"></i> | |
| 493 | 473 | </button> |
| 474 | + <div class="input-group-append"> | |
| 475 | + <button | |
| 476 | + ladda="searchLoading" | |
| 477 | + class="btn btn-outline-secondary" | |
| 478 | + type="button" | |
| 479 | + ng-click="seleccionarTipoFactura(13)" | |
| 480 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 481 | + </button> | |
| 482 | + </div> | |
| 494 | 483 | </div> |
| 495 | 484 | </div> |
| 496 | 485 | </div> |
| 497 | - </div> | |
| 498 | - | |
| 499 | - <div class="row"> | |
| 500 | - <div class= "col-md-4 col-12 mt-2"> | |
| 501 | - <label>CUIT</label> | |
| 502 | - <div class="d-flex"> | |
| 503 | - <input | |
| 504 | - type="text" | |
| 505 | - class="text-center form-control form-control-sm col-2" | |
| 506 | - limite-numeros-max="2" | |
| 507 | - ng-model="cliente.cuit1" | |
| 508 | - ng-required="true" | |
| 509 | - ng-keypress="pasarCampoCuit(1)" | |
| 510 | - ng-focus="focus(14)" | |
| 511 | - foca-focus="focused == 14" | |
| 512 | - teclado-virtual | |
| 513 | - foca-tipo-input | |
| 514 | - > | |
| 515 | - <span class="m-1"> - </span> | |
| 516 | - <input | |
| 517 | - type="text" | |
| 518 | - class="text-center form-control form-control-sm col-5" | |
| 519 | - maxlength="8" | |
| 520 | - limite-numeros-max="8" | |
| 521 | - ng-keypress="pasarCampoCuit(2)" | |
| 522 | - ng-model="cliente.cuit2" | |
| 523 | - ng-required="true" | |
| 524 | - ng-focus="focus(15)" | |
| 525 | - foca-focus="cuitActivo == 2 || focused == 15" | |
| 526 | - teclado-virtual | |
| 527 | - foca-tipo-input | |
| 528 | - > | |
| 529 | - <span class="m-1"> - </span> | |
| 530 | - <input | |
| 531 | - type="text" | |
| 532 | - class="text-center form-control form-control-sm col-2" | |
| 533 | - maxlength="1" | |
| 534 | - limite-numeros-max="1" | |
| 535 | - ng-keypress="pasarCampoCuit(3)" | |
| 536 | - ng-model="cliente.cuit3" | |
| 537 | - ng-required="true" | |
| 538 | - ng-focus="focus(16)" | |
| 539 | - foca-focus="cuitActivo == 3 || focused == 16" | |
| 540 | - teclado-virtual | |
| 541 | - foca-tipo-input | |
| 542 | - > | |
| 486 | + <div class="row"> | |
| 487 | + <div class= "col-md-4 col-12 mt-2"> | |
| 488 | + <label>CUIT</label> | |
| 489 | + <div class="d-flex"> | |
| 490 | + <input | |
| 491 | + type="text" | |
| 492 | + class="text-center form-control form-control-sm col-2" | |
| 493 | + limite-numeros-max="2" | |
| 494 | + ng-model="cliente.cuit1" | |
| 495 | + ng-required="true" | |
| 496 | + ng-keypress="pasarCampoCuit(1)" | |
| 497 | + ng-focus="focus(14)" | |
| 498 | + foca-focus="focused == 14" | |
| 499 | + teclado-virtual | |
| 500 | + foca-tipo-input | |
| 501 | + > | |
| 502 | + <span class="m-1"> - </span> | |
| 503 | + <input | |
| 504 | + type="text" | |
| 505 | + class="text-center form-control form-control-sm col-5" | |
| 506 | + maxlength="8" | |
| 507 | + limite-numeros-max="8" | |
| 508 | + ng-keypress="pasarCampoCuit(2)" | |
| 509 | + ng-model="cliente.cuit2" | |
| 510 | + ng-required="true" | |
| 511 | + ng-focus="focus(15)" | |
| 512 | + foca-focus="cuitActivo == 2 || focused == 15" | |
| 513 | + teclado-virtual | |
| 514 | + foca-tipo-input | |
| 515 | + > | |
| 516 | + <span class="m-1"> - </span> | |
| 517 | + <input | |
| 518 | + type="text" | |
| 519 | + class="text-center form-control form-control-sm col-2" | |
| 520 | + maxlength="1" | |
| 521 | + limite-numeros-max="1" | |
| 522 | + ng-keypress="pasarCampoCuit(3)" | |
| 523 | + ng-model="cliente.cuit3" | |
| 524 | + ng-required="true" | |
| 525 | + ng-focus="focus(16)" | |
| 526 | + foca-focus="cuitActivo == 3 || focused == 16" | |
| 527 | + teclado-virtual | |
| 528 | + foca-tipo-input | |
| 529 | + > | |
| 530 | + </div> | |
| 543 | 531 | </div> |
| 544 | - </div> | |
| 545 | - <div class="col-md-4 col-12 mt-2"> | |
| 546 | - <label>Clase de comprobante</label> | |
| 547 | - <div class="input-group"> | |
| 548 | - <input | |
| 549 | - type="text" | |
| 550 | - class="form-control form-control-sm" | |
| 551 | - placeholder="Seleccione clase de comprobante" | |
| 552 | - ng-keypress="seleccionarTipoComprobante($event.keyCode)" | |
| 553 | - ng-model="cliente.tipoComprobante.NOMBRE" | |
| 554 | - ng-required="true" | |
| 555 | - ng-focus="focus(17)" | |
| 556 | - foca-focus="focused == 17" | |
| 557 | - teclado-virtual> | |
| 558 | - <button | |
| 559 | - ng-show="cliente.tipoComprobante.NOMBRE.length >= 1" | |
| 560 | - type="button" | |
| 561 | - class="clear-input" | |
| 562 | - ng-click="cliente.tipoComprobante.NOMBRE = ''" | |
| 563 | - > | |
| 564 | - <i class="fa fa-times"></i> | |
| 565 | - </button> | |
| 566 | - <div class="input-group-append"> | |
| 567 | - <button | |
| 568 | - ladda="searchLoading" | |
| 569 | - class="btn btn-outline-secondary" | |
| 532 | + <div class="col-md-4 col-12 mt-2"> | |
| 533 | + <label>Clase de comprobante</label> | |
| 534 | + <div class="input-group"> | |
| 535 | + <input | |
| 536 | + type="text" | |
| 537 | + class="form-control form-control-sm" | |
| 538 | + placeholder="Seleccione clase de comprobante" | |
| 539 | + ng-keypress="seleccionarTipoComprobante($event.keyCode)" | |
| 540 | + ng-model="cliente.tipoComprobante.NOMBRE" | |
| 541 | + ng-required="true" | |
| 542 | + ng-focus="focus(17)" | |
| 543 | + foca-focus="focused == 17" | |
| 544 | + teclado-virtual> | |
| 545 | + <button | |
| 546 | + ng-show="cliente.tipoComprobante.NOMBRE !== ''" | |
| 570 | 547 | type="button" |
| 571 | - ng-click="seleccionarTipoComprobante(13)" | |
| 572 | - > | |
| 573 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 574 | - </button> | |
| 548 | + class="clear-input" | |
| 549 | + ng-click="cliente.tipoComprobante.NOMBRE = ''" | |
| 550 | + ><i class="fa fa-times"></i> | |
| 551 | + </button> | |
| 552 | + <div class="input-group-append"> | |
| 553 | + <button | |
| 554 | + ladda="searchLoading" | |
| 555 | + class="btn btn-outline-secondary" | |
| 556 | + type="button" | |
| 557 | + ng-click="seleccionarTipoComprobante(13)" | |
| 558 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 559 | + </button> | |
| 560 | + </div> | |
| 575 | 561 | </div> |
| 576 | 562 | </div> |
| 577 | - </div> | |
| 578 | - <div class="col-md-4 col-12 mt-2"> | |
| 579 | - <label>Forma de pago</label> | |
| 580 | - <div class="input-group"> | |
| 581 | - <input | |
| 582 | - type="text" | |
| 583 | - class="form-control form-control-sm" | |
| 584 | - placeholder="Seleccione forma de pago" | |
| 585 | - ng-model="cliente.formaPago.NOMBRE" | |
| 586 | - ng-required="true" | |
| 587 | - ng-keypress="seleccionarFormaPago($event.keyCode)" | |
| 588 | - ng-focus="focus(18)" | |
| 589 | - foca-focus="focused == 18" | |
| 590 | - teclado-virtual> | |
| 591 | - <button | |
| 592 | - ng-show="cliente.formaPago.NOMBRE.length >= 1" | |
| 593 | - type="button" | |
| 594 | - class="clear-input" | |
| 595 | - ng-click="cliente.formaPago.NOMBRE = ''" | |
| 596 | - > | |
| 597 | - <i class="fa fa-times"></i> | |
| 598 | - </button> | |
| 599 | - <div class="input-group-append"> | |
| 600 | - <button | |
| 601 | - ladda="searchLoading" | |
| 602 | - class="btn btn-outline-secondary" | |
| 563 | + <div class="col-md-4 col-12 mt-2"> | |
| 564 | + <label>Forma de pago</label> | |
| 565 | + <div class="input-group"> | |
| 566 | + <input | |
| 567 | + type="text" | |
| 568 | + class="form-control form-control-sm" | |
| 569 | + placeholder="Seleccione forma de pago" | |
| 570 | + ng-model="cliente.formaPago.NOMBRE" | |
| 571 | + ng-required="true" | |
| 572 | + ng-keypress="seleccionarFormaPago($event.keyCode)" | |
| 573 | + ng-focus="focus(18)" | |
| 574 | + foca-focus="focused == 18" | |
| 575 | + teclado-virtual> | |
| 576 | + <button | |
| 577 | + ng-show="cliente.formaPago.NOMBRE !== ''" | |
| 603 | 578 | type="button" |
| 604 | - ng-click="seleccionarFormaPago(13)" | |
| 605 | - > | |
| 606 | - <i class="fa fa-search" aria-hidden="true"></i> | |
| 579 | + class="clear-input" | |
| 580 | + ng-click="cliente.formaPago.NOMBRE = ''" | |
| 581 | + ><i class="fa fa-times"></i> | |
| 607 | 582 | </button> |
| 583 | + <div class="input-group-append"> | |
| 584 | + <button | |
| 585 | + ladda="searchLoading" | |
| 586 | + class="btn btn-outline-secondary" | |
| 587 | + type="button" | |
| 588 | + ng-click="seleccionarFormaPago(13)" | |
| 589 | + ><i class="fa fa-search" aria-hidden="true"></i> | |
| 590 | + </button> | |
| 591 | + </div> | |
| 608 | 592 | </div> |
| 609 | 593 | </div> |
| 610 | 594 | </div> |
| 611 | - </div> | |
| 612 | - </uib-tab> | |
| 613 | - </uib-tabset> | |
| 595 | + </uib-tab> | |
| 596 | + </uib-tabset> | |
| 597 | + </fieldset> | |
| 614 | 598 | </form> |
| 615 | 599 | </div> |
| 616 | 600 | <div class="modal-footer py-1"> |
| ... | ... | @@ -642,11 +626,24 @@ |
| 642 | 626 | </li> |
| 643 | 627 | </ul> |
| 644 | 628 | </nav> |
| 645 | - <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | |
| 646 | 629 | <button |
| 630 | + ng-hide="accion == 'Cliente'" | |
| 631 | + class="btn btn-sm btn-secondary" | |
| 632 | + type="button" | |
| 633 | + ng-click="cancel()">Cancelar | |
| 634 | + </button> | |
| 635 | + <button | |
| 636 | + ng-show="accion == 'Cliente'" | |
| 637 | + class="btn btn-sm btn-secondary" | |
| 638 | + type="button" | |
| 639 | + ng-click="cancel()">Volver | |
| 640 | + </button> | |
| 641 | + <button | |
| 642 | + ng-hide="accion == 'Cliente'" | |
| 647 | 643 | class="btn btn-sm btn-primary" |
| 648 | 644 | type="button" |
| 649 | 645 | ng-show="ingreso" |
| 650 | 646 | ng-click="guardar()" |
| 651 | - >Guardar</button> | |
| 647 | + >Guardar | |
| 648 | + </button> | |
| 652 | 649 | </div> |