Commit 2a7ec7e0d9a7d13d00657cc04b0933b07a95a5cc

Authored by Marcelo Puebla
1 parent da8837c125
Exists in develop

Fix

Inputs que solo deberian ser numericos
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/views/foca-busqueda-cliente-modal.html
1 <div class="modal-header py-1"> 1 <div class="modal-header py-1">
2 <div class="row w-100"> 2 <div class="row w-100">
3 <div class="col-lg-4 col-7"> 3 <div class="col-lg-4 col-7">
4 <h5 class="modal-title my-1" ng-hide="ingreso">Búsqueda de Cliente</h5> 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" ng-bind="accion"></h5> 5 <h5 class="modal-title my-1" ng-show="ingreso" ng-bind="accion"></h5>
6 </div> 6 </div>
7 <div ng-show="ingreso" class="col-lg-6 col-5 front-index"> 7 <div ng-show="ingreso" class="col-lg-6 col-5 front-index">
8 <div class="custom-control custom-checkbox mt-2"> 8 <div class="custom-control custom-checkbox mt-2">
9 <input 9 <input
10 ng-disabled="accion == 'Cliente'" 10 ng-disabled="accion == 'Cliente'"
11 type="checkbox" 11 type="checkbox"
12 class="custom-control-input" 12 class="custom-control-input"
13 id="checkProspecto" 13 id="checkProspecto"
14 ng-model="cliente.ES_PROS"> 14 ng-model="cliente.ES_PROS">
15 <label class="custom-control-label" for="checkProspecto">¿Es prospecto?</label> 15 <label class="custom-control-label" for="checkProspecto">¿Es prospecto?</label>
16 </div> 16 </div>
17 </div> 17 </div>
18 <div class="input-group col-lg-6 offset-lg-2 pr-0 my-2"> 18 <div class="input-group col-lg-6 offset-lg-2 pr-0 my-2">
19 <button 19 <button
20 class="btn btn-outline-debo mr-2" 20 class="btn btn-outline-debo mr-2"
21 ng-click="crearCliente()" 21 ng-click="crearCliente()"
22 ng-show="!ingreso" 22 ng-show="!ingreso"
23 title="Nuevo"> 23 title="Nuevo">
24 <i class="fa fa-plus" aria-hidden="true"></i> 24 <i class="fa fa-plus" aria-hidden="true"></i>
25 </button> 25 </button>
26 <input 26 <input
27 ladda="searchLoading" 27 ladda="searchLoading"
28 type="text" 28 type="text"
29 class="form-control form-control-sm" 29 class="form-control form-control-sm"
30 id="search" 30 id="search"
31 placeholder="Busqueda" 31 placeholder="Busqueda"
32 ng-model="filters" 32 ng-model="filters"
33 ng-change="search()" 33 ng-change="search()"
34 ng-keydown="busquedaDown($event.keyCode)" 34 ng-keydown="busquedaDown($event.keyCode)"
35 ng-keypress="busquedaPress($event.keyCode)" 35 ng-keypress="busquedaPress($event.keyCode)"
36 foca-focus="selectedClientes == -1" 36 foca-focus="selectedClientes == -1"
37 ng-focus="selectedClientes = -1" 37 ng-focus="selectedClientes = -1"
38 teclado-virtual 38 teclado-virtual
39 ng-hide="ingreso" 39 ng-hide="ingreso"
40 > 40 >
41 <button 41 <button
42 ng-show="filters.length >= 1 && !ingreso" 42 ng-show="filters.length >= 1 && !ingreso"
43 type="button" 43 type="button"
44 class="clear-input" 44 class="clear-input"
45 ng-click="filters = ''" 45 ng-click="filters = ''"
46 > 46 >
47 <i class="fa fa-times"></i> 47 <i class="fa fa-times"></i>
48 </button> 48 </button>
49 <div class="input-group-append" ng-hide="ingreso"> 49 <div class="input-group-append" ng-hide="ingreso">
50 <button 50 <button
51 ladda="searchLoading" 51 ladda="searchLoading"
52 data-spinner-color="#FF0000" 52 data-spinner-color="#FF0000"
53 class="btn btn-outline-secondary" 53 class="btn btn-outline-secondary"
54 type="button" 54 type="button"
55 ng-click="busquedaPress(13)"> 55 ng-click="busquedaPress(13)">
56 <i class="fa fa-search" aria-hidden="true"></i> 56 <i class="fa fa-search" aria-hidden="true"></i>
57 </button> 57 </button>
58 </div> 58 </div>
59 </div> 59 </div>
60 </div> 60 </div>
61 </div> 61 </div>
62 <div class="modal-body" id="modal-body"> 62 <div class="modal-body" id="modal-body">
63 63
64 <div ng-show="!primerBusqueda && !ingreso"> 64 <div ng-show="!primerBusqueda && !ingreso">
65 Debe realizar una primer búsqueda. 65 Debe realizar una primer búsqueda.
66 </div> 66 </div>
67 67
68 <table ng-show="primerBusqueda && !ingreso" class="table table-striped table-sm"> 68 <table ng-show="primerBusqueda && !ingreso" class="table table-striped table-sm">
69 <thead> 69 <thead>
70 <tr> 70 <tr>
71 <th>Código</th> 71 <th>Código</th>
72 <th>Nombre</th> 72 <th>Nombre</th>
73 <th>CUIT</th> 73 <th>CUIT</th>
74 <th colspan="2"></th> 74 <th colspan="2"></th>
75 </tr> 75 </tr>
76 </thead> 76 </thead>
77 <tbody> 77 <tbody>
78 <tr ng-show="currentPageClientes.length == 0 && primerBusqueda"> 78 <tr ng-show="currentPageClientes.length == 0 && primerBusqueda">
79 <td colspan="4"> 79 <td colspan="4">
80 No se encontraron resultados. 80 No se encontraron resultados.
81 </td> 81 </td>
82 </tr> 82 </tr>
83 <tr 83 <tr
84 class="selectable" 84 class="selectable"
85 ng-repeat="(key, cliente) in currentPageClientes" 85 ng-repeat="(key, cliente) in currentPageClientes"
86 > 86 >
87 <td ng-bind="('00000'+cliente.COD).slice(-5)"></td> 87 <td ng-bind="('00000'+cliente.COD).slice(-5)"></td>
88 <td ng-bind="cliente.NOM"></td> 88 <td ng-bind="cliente.NOM"></td>
89 <td ng-bind="cliente.CUIT"></td> 89 <td ng-bind="cliente.CUIT"></td>
90 <td> 90 <td>
91 <button 91 <button
92 type="button" 92 type="button"
93 class="btn btn-xs p-1" 93 class="btn btn-xs p-1"
94 ng-click="openModal(cliente)" 94 ng-click="openModal(cliente)"
95 ><i class="fa fa-eye"></i> 95 ><i class="fa fa-eye"></i>
96 </button> 96 </button>
97 </td> 97 </td>
98 <td> 98 <td>
99 <button 99 <button
100 type="button" 100 type="button"
101 class="btn btn-xs p-1 float-right" 101 class="btn btn-xs p-1 float-right"
102 ng-class="{ 102 ng-class="{
103 'btn-secondary': selectedClientes != key, 103 'btn-secondary': selectedClientes != key,
104 'btn-primary': selectedClientes == key 104 'btn-primary': selectedClientes == key
105 }" 105 }"
106 ng-click="select(cliente)" 106 ng-click="select(cliente)"
107 foca-focus="selectedClientes == {{key}}" 107 foca-focus="selectedClientes == {{key}}"
108 ng-keydown="itemCliente($event.keyCode)" 108 ng-keydown="itemCliente($event.keyCode)"
109 > 109 >
110 <i class="fa fa-circle-thin" aria-hidden="true"></i> 110 <i class="fa fa-circle-thin" aria-hidden="true"></i>
111 </button> 111 </button>
112 </td> 112 </td>
113 </tr> 113 </tr>
114 </tbody> 114 </tbody>
115 </table> 115 </table>
116 116
117 <form name="formCliente"> 117 <form name="formCliente">
118 <fieldset> 118 <fieldset>
119 <uib-tabset class="tabs-right" ng-show="ingreso"> 119 <uib-tabset class="tabs-right" ng-show="ingreso">
120 <uib-tab heading="Datos cliente"> 120 <uib-tab heading="Datos cliente">
121 <div class="row"> 121 <div class="row">
122 <div class="col-3 mt-2"> 122 <div class="col-3 mt-2">
123 <label>Código</label> 123 <label>Código</label>
124 <input 124 <input
125 type="text" 125 type="text"
126 class="form-control form-control-sm" 126 class="form-control form-control-sm"
127 ng-model="cliente.codigo" 127 ng-model="cliente.codigo"
128 readonly 128 readonly
129 /> 129 />
130 </div> 130 </div>
131 <div class="col-9 mt-2"> 131 <div class="col-9 mt-2">
132 <label>Nombre</label> 132 <label>Nombre</label>
133 <input 133 <input
134 type="text" 134 type="text"
135 class="form-control form-control-sm" 135 class="form-control form-control-sm"
136 ng-model="cliente.NOM" 136 ng-model="cliente.NOM"
137 teclado-virtual 137 teclado-virtual
138 placeholder="Ingrese nombre" 138 placeholder="Ingrese nombre"
139 ng-required="true" 139 ng-required="true"
140 foca-focus="focused == 1 || ingreso" 140 foca-focus="focused == 1 || ingreso"
141 ng-focus="focus(1)" 141 ng-focus="focus(1)"
142 ng-keypress="next($event.keyCode)" 142 ng-keypress="next($event.keyCode)"
143 /> 143 />
144 </div> 144 </div>
145 </div> 145 </div>
146 <div class="row"> 146 <div class="row">
147 <div class="col-md-9 col-12 mt-2"> 147 <div class="col-md-9 col-12 mt-2">
148 <label>Domicilio</label> 148 <label>Domicilio</label>
149 <input 149 <input
150 type="text" 150 type="text"
151 class="form-control form-control-sm" 151 class="form-control form-control-sm"
152 ng-model="cliente.DOM" 152 ng-model="cliente.DOM"
153 teclado-virtual 153 teclado-virtual
154 placeholder="Ingrese domicilio" 154 placeholder="Ingrese domicilio"
155 ng-required="true" 155 ng-required="true"
156 ng-focus="focus(2)" 156 ng-focus="focus(2)"
157 foca-focus="focused == 2" 157 foca-focus="focused == 2"
158 ng-keypress="next($event.keyCode)" 158 ng-keypress="next($event.keyCode)"
159 /> 159 />
160 </div> 160 </div>
161 <div class="col-md-3 col-12 mt-2"> 161 <div class="col-md-3 col-12 mt-2">
162 <label>Código postal</label> 162 <label>Código postal</label>
163 <input 163 <input
164 type="text" 164 type="text"
165 class="form-control form-control-sm" 165 class="form-control form-control-sm"
166 ng-model="cliente.CPO" 166 ng-model="cliente.CPO"
167 placeholder="Ingrese CP" 167 placeholder="Ingrese CP"
168 ng-required="true" 168 ng-required="true"
169 ng-focus="focus(3); selectFocus($event);" 169 ng-focus="focus(3); selectFocus($event);"
170 foca-focus="focused == 3" 170 foca-focus="focused == 3"
171 ng-keypress="next($event.keyCode)" 171 ng-keypress="next($event.keyCode)"
172 only-numbers
172 teclado-virtual 173 teclado-virtual
173 /> 174 />
174 </div> 175 </div>
175 </div> 176 </div>
176 <div class="row"> 177 <div class="row">
177 <div class="col-md-6 col-12 mt-2"> 178 <div class="col-md-6 col-12 mt-2">
178 <label>Provincia</label> 179 <label>Provincia</label>
179 <div class="input-group"> 180 <div class="input-group">
180 <input 181 <input
181 type="text" 182 type="text"
182 class="form-control form-control-sm" 183 class="form-control form-control-sm"
183 ng-model="cliente.provincia.NOMBRE" 184 ng-model="cliente.provincia.NOMBRE"
184 ng-keypress="seleccionarProvincia($event.keyCode)" 185 ng-keypress="seleccionarProvincia($event.keyCode)"
185 placeholder="Seleccione provincia" 186 placeholder="Seleccione provincia"
186 ng-required="true" 187 ng-required="true"
187 ng-focus="focus(4)" 188 ng-focus="focus(4)"
188 foca-focus="focused == 4" 189 foca-focus="focused == 4"
189 teclado-virtual 190 teclado-virtual
190 /> 191 />
191 <button 192 <button
192 ng-show="cliente.provincia.NOMBRE !== ''" 193 ng-show="cliente.provincia.NOMBRE !== ''"
193 type="button" 194 type="button"
194 class="clear-input" 195 class="clear-input"
195 ng-click= 196 ng-click=
196 "cliente.provincia.NOMBRE = ''; 197 "cliente.provincia.NOMBRE = '';
197 cliente.provincia.ID = undefined" 198 cliente.provincia.ID = undefined"
198 ><i class="fa fa-times"></i> 199 ><i class="fa fa-times"></i>
199 </button> 200 </button>
200 <div class="input-group-append"> 201 <div class="input-group-append">
201 <button 202 <button
202 ladda="searchLoading" 203 ladda="searchLoading"
203 class="btn btn-outline-secondary" 204 class="btn btn-outline-secondary"
204 type="button" 205 type="button"
205 ng-click="seleccionarProvincia(13)" 206 ng-click="seleccionarProvincia(13)"
206 ><i class="fa fa-search" aria-hidden="true"></i> 207 ><i class="fa fa-search" aria-hidden="true"></i>
207 </button> 208 </button>
208 </div> 209 </div>
209 </div> 210 </div>
210 </div> 211 </div>
211 <div class="col-md-6 col-12 mt-2"> 212 <div class="col-md-6 col-12 mt-2">
212 <label>Localidad</label> 213 <label>Localidad</label>
213 <div class="input-group"> 214 <div class="input-group">
214 <input 215 <input
215 type="text" 216 type="text"
216 class="form-control form-control-sm" 217 class="form-control form-control-sm"
217 ng-model="cliente.localidad.NOMBRE" 218 ng-model="cliente.localidad.NOMBRE"
218 ng-keypress="seleccionarLocalidad($event.keyCode)" 219 ng-keypress="seleccionarLocalidad($event.keyCode)"
219 placeholder="Seleccione localidad" 220 placeholder="Seleccione localidad"
220 ng-required="true" 221 ng-required="true"
221 foca-focus="focused == 5" 222 foca-focus="focused == 5"
222 ng-focus="focus(5)" 223 ng-focus="focus(5)"
223 teclado-virtual 224 teclado-virtual
224 /> 225 />
225 <button 226 <button
226 ng-show="cliente.localidad.NOMBRE !== ''" 227 ng-show="cliente.localidad.NOMBRE !== ''"
227 type="button" 228 type="button"
228 class="clear-input" 229 class="clear-input"
229 ng-click="cliente.localidad.NOMBRE = ''" 230 ng-click="cliente.localidad.NOMBRE = ''"
230 ><i class="fa fa-times"></i> 231 ><i class="fa fa-times"></i>
231 </button> 232 </button>
232 <div class="input-group-append"> 233 <div class="input-group-append">
233 <button 234 <button
234 ladda="searchLoading" 235 ladda="searchLoading"
235 class="btn btn-outline-secondary" 236 class="btn btn-outline-secondary"
236 type="button" 237 type="button"
237 ng-click="seleccionarLocalidad(13)" 238 ng-click="seleccionarLocalidad(13)"
238 ><i class="fa fa-search" aria-hidden="true"></i> 239 ><i class="fa fa-search" aria-hidden="true"></i>
239 </button> 240 </button>
240 </div> 241 </div>
241 </div> 242 </div>
242 </div> 243 </div>
243 </div> 244 </div>
244 <div class="row"> 245 <div class="row">
245 <div class="col-md-6 col-12 mt-2"> 246 <div class="col-md-6 col-12 mt-2">
246 <label>Zona</label> 247 <label>Zona</label>
247 <div class="input-group"> 248 <div class="input-group">
248 <input 249 <input
249 type="text" 250 type="text"
250 class="form-control form-control-sm" 251 class="form-control form-control-sm"
251 ng-model="cliente.zona.NOM" 252 ng-model="cliente.zona.NOM"
252 ng-keypress="seleccionarZona($event.keyCode)" 253 ng-keypress="seleccionarZona($event.keyCode)"
253 placeholder="Seleccione zona" 254 placeholder="Seleccione zona"
254 ng-required="true" 255 ng-required="true"
255 ng-focus="focus(6)" 256 ng-focus="focus(6)"
256 foca-focus="focused == 6" 257 foca-focus="focused == 6"
257 teclado-virtual 258 teclado-virtual
258 /> 259 />
259 <button 260 <button
260 ng-show="cliente.zona.NOM !== ''" 261 ng-show="cliente.zona.NOM !== ''"
261 type="button" 262 type="button"
262 class="clear-input" 263 class="clear-input"
263 ng-click="cliente.zona.NOM = ''" 264 ng-click="cliente.zona.NOM = ''"
264 ><i class="fa fa-times"></i> 265 ><i class="fa fa-times"></i>
265 </button> 266 </button>
266 <div class="input-group-append"> 267 <div class="input-group-append">
267 <button 268 <button
268 ladda="searchLoading" 269 ladda="searchLoading"
269 class="btn btn-outline-secondary" 270 class="btn btn-outline-secondary"
270 type="button" 271 type="button"
271 ng-click="seleccionarZona(13)" 272 ng-click="seleccionarZona(13)"
272 ><i class="fa fa-search" aria-hidden="true"></i> 273 ><i class="fa fa-search" aria-hidden="true"></i>
273 </button> 274 </button>
274 </div> 275 </div>
275 </div> 276 </div>
276 </div> 277 </div>
277 <div class="col-md-6 col-12 mt-2"> 278 <div class="col-md-6 col-12 mt-2">
278 <label> Actividad </label> 279 <label> Actividad </label>
279 <div class="input-group"> 280 <div class="input-group">
280 <input 281 <input
281 type="text" 282 type="text"
282 class="form-control form-control-sm" 283 class="form-control form-control-sm"
283 ng-model="cliente.actividad.NOM" 284 ng-model="cliente.actividad.NOM"
284 ng-keypress="seleccionarActividad($event.keyCode)" 285 ng-keypress="seleccionarActividad($event.keyCode)"
285 placeholder="Seleccione actividad" 286 placeholder="Seleccione actividad"
286 ng-required="true" 287 ng-required="true"
287 ng-focus="focus(7)" 288 ng-focus="focus(7)"
288 foca-focus="focused == 7" 289 foca-focus="focused == 7"
289 teclado-virtual 290 teclado-virtual
290 /> 291 />
291 <button 292 <button
292 ng-show="cliente.actividad.NOM !== ''" 293 ng-show="cliente.actividad.NOM !== ''"
293 type="button" 294 type="button"
294 class="clear-input" 295 class="clear-input"
295 ng-click="cliente.actividad.NOM = ''" 296 ng-click="cliente.actividad.NOM = ''"
296 ><i class="fa fa-times"></i> 297 ><i class="fa fa-times"></i>
297 </button> 298 </button>
298 <div class="input-group-append"> 299 <div class="input-group-append">
299 <button 300 <button
300 ladda="searchLoading" 301 ladda="searchLoading"
301 class="btn btn-outline-secondary" 302 class="btn btn-outline-secondary"
302 type="button" 303 type="button"
303 ng-click="seleccionarActividad(13)" 304 ng-click="seleccionarActividad(13)"
304 ><i class="fa fa-search" aria-hidden="true"></i> 305 ><i class="fa fa-search" aria-hidden="true"></i>
305 </button> 306 </button>
306 </div> 307 </div>
307 </div> 308 </div>
308 </div> 309 </div>
309 </div> 310 </div>
310 <div class="row"> 311 <div class="row">
311 <div class="col-md-6 col-12 mt-2"> 312 <div class="col-md-6 col-12 mt-2">
312 <label>Cobrador</label> 313 <label>Cobrador</label>
313 <div class="input-group"> 314 <div class="input-group">
314 <input 315 <input
315 type="text" 316 type="text"
316 class="form-control form-control-sm" 317 class="form-control form-control-sm"
317 ng-model="cliente.cobrador.NOM" 318 ng-model="cliente.cobrador.NOM"
318 ng-keypress="seleccionarCobrador($event.keyCode)" 319 ng-keypress="seleccionarCobrador($event.keyCode)"
319 placeholder="Seleccione cobrador" 320 placeholder="Seleccione cobrador"
320 ng-focus="focus(8)" 321 ng-focus="focus(8)"
321 foca-focus="focused == 8" 322 foca-focus="focused == 8"
322 teclado-virtual 323 teclado-virtual
323 /> 324 />
324 <button 325 <button
325 ng-show="cliente.cobrador.NOM !== ''" 326 ng-show="cliente.cobrador.NOM !== ''"
326 type="button" 327 type="button"
327 class="clear-input" 328 class="clear-input"
328 ng-click="cliente.cobrador.NOM = ''" 329 ng-click="cliente.cobrador.NOM = ''"
329 ><i class="fa fa-times"></i> 330 ><i class="fa fa-times"></i>
330 </button> 331 </button>
331 <div class="input-group-append"> 332 <div class="input-group-append">
332 <button 333 <button
333 ladda="searchLoading" 334 ladda="searchLoading"
334 class="btn btn-outline-secondary" 335 class="btn btn-outline-secondary"
335 type="button" 336 type="button"
336 ng-click="seleccionarCobrador(13)" 337 ng-click="seleccionarCobrador(13)"
337 ><i class="fa fa-search" aria-hidden="true"></i> 338 ><i class="fa fa-search" aria-hidden="true"></i>
338 </button> 339 </button>
339 </div> 340 </div>
340 </div> 341 </div>
341 </div> 342 </div>
342 <div class="col-md-6 col-12 mt-2"> 343 <div class="col-md-6 col-12 mt-2">
343 <label>Vendedor</label> 344 <label>Vendedor</label>
344 <div class="input-group"> 345 <div class="input-group">
345 <input 346 <input
346 type="text" 347 type="text"
347 class="form-control form-control-sm" 348 class="form-control form-control-sm"
348 ng-model="vendedor.NOM" 349 ng-model="vendedor.NOM"
349 ng-keypress="seleccionarVendedor($event.keyCode)" 350 ng-keypress="seleccionarVendedor($event.keyCode)"
350 placeholder="Seleccione vendedor" 351 placeholder="Seleccione vendedor"
351 ng-focus="focus(9)" 352 ng-focus="focus(9)"
352 foca-focus="focused == 9" 353 foca-focus="focused == 9"
353 teclado-virtual 354 teclado-virtual
354 /> 355 />
355 <button 356 <button
356 ng-show="vendedor.NOM !== ''" 357 ng-show="vendedor.NOM !== ''"
357 type="button" 358 type="button"
358 class="clear-input" 359 class="clear-input"
359 ng-click="vendedor.NOM = ''" 360 ng-click="vendedor.NOM = ''"
360 ><i class="fa fa-times"></i> 361 ><i class="fa fa-times"></i>
361 </button> 362 </button>
362 <div class="input-group-append"> 363 <div class="input-group-append">
363 <button 364 <button
364 ladda="searchLoading" 365 ladda="searchLoading"
365 class="btn btn-outline-secondary" 366 class="btn btn-outline-secondary"
366 type="button" 367 type="button"
367 ng-click="seleccionarVendedor(13)" 368 ng-click="seleccionarVendedor(13)"
368 ><i class="fa fa-search" aria-hidden="true"></i> 369 ><i class="fa fa-search" aria-hidden="true"></i>
369 </button> 370 </button>
370 </div> 371 </div>
371 </div> 372 </div>
372 </div> 373 </div>
373 <div class="col-md-6 col-12 mt-2"> 374 <div class="col-md-6 col-12 mt-2">
374 <label>Email</label> 375 <label>Email</label>
375 <div class="input-group"> 376 <div class="input-group">
376 <input 377 <input
377 type="text" 378 type="text"
378 class="form-control form-control-sm" 379 class="form-control form-control-sm"
379 placeholder="Ingrese Email" 380 placeholder="Ingrese Email"
380 ng-model="cliente.MAIL" 381 ng-model="cliente.MAIL"
381 ng-required="true" 382 ng-required="true"
382 ng-keypress="next($event.keyCode)" 383 ng-keypress="next($event.keyCode)"
383 ng-focus="focus(10)" 384 ng-focus="focus(10)"
384 foca-focus="focused == 10" 385 foca-focus="focused == 10"
385 teclado-virtual> 386 teclado-virtual>
386 </div> 387 </div>
387 </div> 388 </div>
388 <div class="col-md-6 col-12 mt-2"> 389 <div class="col-md-6 col-12 mt-2">
389 <label>Teléfono</label> 390 <label>Teléfono</label>
390 <div class="input-group"> 391 <div class="input-group">
391 <input 392 <input
392 foca-tipo-input 393 foca-tipo-input
393 limite-numeros-max="20" 394 limite-numeros-max="20"
394 class="form-control form-control-sm" 395 class="form-control form-control-sm"
395 placeholder="Ingrese Teléfono" 396 placeholder="Ingrese Teléfono"
396 ng-model="cliente.TEL" 397 ng-model="cliente.TEL"
397 ng-required="true" 398 ng-required="true"
398 ng-keypress="next($event.keyCode)" 399 ng-keypress="next($event.keyCode)"
399 ng-focus="focus(11); selectFocus($event);" 400 ng-focus="focus(11); selectFocus($event);"
400 foca-focus="focused == 11" 401 foca-focus="focused == 11"
402 only-numbers
401 teclado-virtual> 403 teclado-virtual>
402 </div> 404 </div>
403 </div> 405 </div>
404 </div> 406 </div>
405 <div class="row"> 407 <div class="row">
406 <div class="col-6 d-flex mt-3"> 408 <div class="col-6 d-flex mt-3">
407 <div class="custom-control custom-checkbox mt-auto"> 409 <div class="custom-control custom-checkbox mt-auto">
408 <input 410 <input
409 type="checkbox" 411 type="checkbox"
410 class="custom-control-input" 412 class="custom-control-input"
411 id="checkDistribuidor" 413 id="checkDistribuidor"
412 ng-model="cliente.ES_MAY" 414 ng-model="cliente.ES_MAY"
413 checked 415 checked
414 disabled="disabled"> 416 disabled="disabled">
415 <label class="custom-control-label" for="checkDistribuidor">¿Este cliente es distribuidor?</label> 417 <label class="custom-control-label" for="checkDistribuidor">¿Este cliente es distribuidor?</label>
416 </div> 418 </div>
417 </div> 419 </div>
418 </div> 420 </div>
419 </uib-tab> 421 </uib-tab>
420 <uib-tab heading="Datos impositivos"> 422 <uib-tab heading="Datos impositivos">
421 <div class="row"> 423 <div class="row">
422 <div class="col-md-7 col-12 mt-2"> 424 <div class="col-md-7 col-12 mt-2">
423 <label>Responsabilidad ante el IVA</label> 425 <label>Responsabilidad ante el IVA</label>
424 <div class="input-group"> 426 <div class="input-group">
425 <input 427 <input
426 type="text" 428 type="text"
427 class="form-control form-control-sm" 429 class="form-control form-control-sm"
428 placeholder="Seleccione responsabilidad ante el IVA" 430 placeholder="Seleccione responsabilidad ante el IVA"
429 ng-model="cliente.iva.NOMBRE" 431 ng-model="cliente.iva.NOMBRE"
430 ng-keypress="seleccionarIva($event.keyCode)" 432 ng-keypress="seleccionarIva($event.keyCode)"
431 ng-required="true" 433 ng-required="true"
432 ng-focus="focus(12)" 434 ng-focus="focus(12)"
433 foca-focus="focused == 12" 435 foca-focus="focused == 12"
434 teclado-virtual 436 teclado-virtual
435 /> 437 />
436 <button 438 <button
437 ng-show="cliente.iva.NOMBRE !== ''" 439 ng-show="cliente.iva.NOMBRE !== ''"
438 type="button" 440 type="button"
439 class="clear-input" 441 class="clear-input"
440 ng-click="cliente.iva.NOMBRE = ''" 442 ng-click="cliente.iva.NOMBRE = ''"
441 ><i class="fa fa-times"></i> 443 ><i class="fa fa-times"></i>
442 </button> 444 </button>
443 <div class="input-group-append"> 445 <div class="input-group-append">
444 <button 446 <button
445 ladda="searchLoading" 447 ladda="searchLoading"
446 class="btn btn-outline-secondary" 448 class="btn btn-outline-secondary"
447 type="button" 449 type="button"
448 ng-click="seleccionarIva(13)" 450 ng-click="seleccionarIva(13)"
449 ><i class="fa fa-search" aria-hidden="true"></i> 451 ><i class="fa fa-search" aria-hidden="true"></i>
450 </button> 452 </button>
451 </div> 453 </div>
452 </div> 454 </div>
453 </div> 455 </div>
454 <div class="col-md-5 col-12 mt-2"> 456 <div class="col-md-5 col-12 mt-2">
455 <label>Factura que emite</label> 457 <label>Factura que emite</label>
456 <div class="input-group"> 458 <div class="input-group">
457 <input 459 <input
458 type="text" 460 type="text"
459 class="form-control form-control-sm" 461 class="form-control form-control-sm"
460 placeholder="Seleccione factura que emite" 462 placeholder="Seleccione factura que emite"
461 ng-model="cliente.tipoFactura.NOMBRE" 463 ng-model="cliente.tipoFactura.NOMBRE"
462 ng-required="true" 464 ng-required="true"
463 ng-keypress="seleccionarTipoFactura(13)" 465 ng-keypress="seleccionarTipoFactura(13)"
464 ng-focus="focus(13)" 466 ng-focus="focus(13)"
465 foca-focus="focused == 13" 467 foca-focus="focused == 13"
466 teclado-virtual> 468 teclado-virtual>
467 <button 469 <button
468 ng-show="cliente.tipoFactura.NOMBRE !== ''" 470 ng-show="cliente.tipoFactura.NOMBRE !== ''"
469 type="button" 471 type="button"
470 class="clear-input" 472 class="clear-input"
471 ng-click="cliente.tipoFactura.NOMBRE = ''" 473 ng-click="cliente.tipoFactura.NOMBRE = ''"
472 ><i class="fa fa-times"></i> 474 ><i class="fa fa-times"></i>
473 </button> 475 </button>
474 <div class="input-group-append"> 476 <div class="input-group-append">
475 <button 477 <button
476 ladda="searchLoading" 478 ladda="searchLoading"
477 class="btn btn-outline-secondary" 479 class="btn btn-outline-secondary"
478 type="button" 480 type="button"
479 ng-click="seleccionarTipoFactura(13)" 481 ng-click="seleccionarTipoFactura(13)"
480 ><i class="fa fa-search" aria-hidden="true"></i> 482 ><i class="fa fa-search" aria-hidden="true"></i>
481 </button> 483 </button>
482 </div> 484 </div>
483 </div> 485 </div>
484 </div> 486 </div>
485 </div> 487 </div>
486 <div class="row"> 488 <div class="row">
487 <div class= "col-md-4 col-12 mt-2"> 489 <div class= "col-md-4 col-12 mt-2">
488 <label>CUIT</label> 490 <label>CUIT</label>
489 <div class="d-flex"> 491 <div class="d-flex">
490 <input 492 <input
491 type="text" 493 type="text"
492 class="text-center form-control form-control-sm col-2" 494 class="text-center form-control form-control-sm col-2"
493 limite-numeros-max="2" 495 limite-numeros-max="2"
494 ng-model="cliente.cuit1" 496 ng-model="cliente.cuit1"
495 ng-required="true" 497 ng-required="true"
496 ng-keypress="pasarCampoCuit(1)" 498 ng-keypress="pasarCampoCuit(1)"
497 ng-focus="focus(14); selectFocus($event);" 499 ng-focus="focus(14); selectFocus($event);"
498 foca-focus="focused == 14" 500 foca-focus="focused == 14"
501 only-numbers
499 teclado-virtual 502 teclado-virtual
500 foca-tipo-input 503 foca-tipo-input
501 > 504 >
502 <span class="m-1"> - </span> 505 <span class="m-1"> - </span>
503 <input 506 <input
504 type="text" 507 type="text"
505 class="text-center form-control form-control-sm col-5" 508 class="text-center form-control form-control-sm col-5"
506 maxlength="8" 509 maxlength="8"
507 limite-numeros-max="8" 510 limite-numeros-max="8"
508 ng-keypress="pasarCampoCuit(2)" 511 ng-keypress="pasarCampoCuit(2)"
509 ng-model="cliente.cuit2" 512 ng-model="cliente.cuit2"
510 ng-required="true" 513 ng-required="true"
511 ng-focus="focus(15); selectFocus($event);" 514 ng-focus="focus(15); selectFocus($event);"
512 foca-focus="cuitActivo == 2 || focused == 15" 515 foca-focus="cuitActivo == 2 || focused == 15"
516 only-numbers
513 teclado-virtual 517 teclado-virtual
514 foca-tipo-input 518 foca-tipo-input
515 > 519 >
516 <span class="m-1"> - </span> 520 <span class="m-1"> - </span>
517 <input 521 <input
518 type="text" 522 type="text"
519 class="text-center form-control form-control-sm col-2" 523 class="text-center form-control form-control-sm col-2"
520 maxlength="1" 524 maxlength="1"
521 limite-numeros-max="1" 525 limite-numeros-max="1"
522 ng-keypress="pasarCampoCuit(3)" 526 ng-keypress="pasarCampoCuit(3)"
523 ng-model="cliente.cuit3" 527 ng-model="cliente.cuit3"
524 ng-required="true" 528 ng-required="true"
525 ng-focus="focus(16); selectValue($event)" 529 ng-focus="focus(16); selectValue($event)"
526 foca-focus="cuitActivo == 3 || focused == 16" 530 foca-focus="cuitActivo == 3 || focused == 16"
531 only-numbers
527 teclado-virtual 532 teclado-virtual
528 foca-tipo-input 533 foca-tipo-input
529 > 534 >
530 </div> 535 </div>
531 </div> 536 </div>
532 <div class="col-md-4 col-12 mt-2"> 537 <div class="col-md-4 col-12 mt-2">
533 <label>Clase de comprobante</label> 538 <label>Clase de comprobante</label>
534 <div class="input-group"> 539 <div class="input-group">
535 <input 540 <input
536 type="text" 541 type="text"
537 class="form-control form-control-sm" 542 class="form-control form-control-sm"
538 placeholder="Seleccione clase de comprobante" 543 placeholder="Seleccione clase de comprobante"
539 ng-keypress="seleccionarTipoComprobante($event.keyCode)" 544 ng-keypress="seleccionarTipoComprobante($event.keyCode)"
540 ng-model="cliente.tipoComprobante.NOMBRE" 545 ng-model="cliente.tipoComprobante.NOMBRE"
541 ng-required="true" 546 ng-required="true"
542 ng-focus="focus(17)" 547 ng-focus="focus(17)"
543 foca-focus="focused == 17" 548 foca-focus="focused == 17"
544 teclado-virtual> 549 teclado-virtual>
545 <button 550 <button
546 ng-show="cliente.tipoComprobante.NOMBRE !== ''" 551 ng-show="cliente.tipoComprobante.NOMBRE !== ''"
547 type="button" 552 type="button"
548 class="clear-input" 553 class="clear-input"
549 ng-click="cliente.tipoComprobante.NOMBRE = ''" 554 ng-click="cliente.tipoComprobante.NOMBRE = ''"
550 ><i class="fa fa-times"></i> 555 ><i class="fa fa-times"></i>
551 </button> 556 </button>
552 <div class="input-group-append"> 557 <div class="input-group-append">
553 <button 558 <button
554 ladda="searchLoading" 559 ladda="searchLoading"
555 class="btn btn-outline-secondary" 560 class="btn btn-outline-secondary"
556 type="button" 561 type="button"
557 ng-click="seleccionarTipoComprobante(13)" 562 ng-click="seleccionarTipoComprobante(13)"
558 ><i class="fa fa-search" aria-hidden="true"></i> 563 ><i class="fa fa-search" aria-hidden="true"></i>
559 </button> 564 </button>
560 </div> 565 </div>
561 </div> 566 </div>
562 </div> 567 </div>
563 <div class="col-md-4 col-12 mt-2"> 568 <div class="col-md-4 col-12 mt-2">
564 <label>Forma de pago</label> 569 <label>Forma de pago</label>
565 <div class="input-group"> 570 <div class="input-group">
566 <input 571 <input
567 type="text" 572 type="text"
568 class="form-control form-control-sm" 573 class="form-control form-control-sm"
569 placeholder="Seleccione forma de pago" 574 placeholder="Seleccione forma de pago"
570 ng-model="cliente.formaPago.NOMBRE" 575 ng-model="cliente.formaPago.NOMBRE"
571 ng-required="true" 576 ng-required="true"
572 ng-keypress="seleccionarFormaPago($event.keyCode)" 577 ng-keypress="seleccionarFormaPago($event.keyCode)"
573 ng-focus="focus(18)" 578 ng-focus="focus(18)"
574 foca-focus="focused == 18" 579 foca-focus="focused == 18"
575 teclado-virtual> 580 teclado-virtual>
576 <button 581 <button
577 ng-show="cliente.formaPago.NOMBRE !== ''" 582 ng-show="cliente.formaPago.NOMBRE !== ''"
578 type="button" 583 type="button"
579 class="clear-input" 584 class="clear-input"
580 ng-click="cliente.formaPago.NOMBRE = ''" 585 ng-click="cliente.formaPago.NOMBRE = ''"
581 ><i class="fa fa-times"></i> 586 ><i class="fa fa-times"></i>
582 </button> 587 </button>
583 <div class="input-group-append"> 588 <div class="input-group-append">
584 <button 589 <button
585 ladda="searchLoading" 590 ladda="searchLoading"
586 class="btn btn-outline-secondary" 591 class="btn btn-outline-secondary"
587 type="button" 592 type="button"
588 ng-click="seleccionarFormaPago(13)" 593 ng-click="seleccionarFormaPago(13)"
589 ><i class="fa fa-search" aria-hidden="true"></i> 594 ><i class="fa fa-search" aria-hidden="true"></i>
590 </button> 595 </button>
591 </div> 596 </div>
592 </div> 597 </div>
593 </div> 598 </div>
594 </div> 599 </div>
595 </uib-tab> 600 </uib-tab>
596 </uib-tabset> 601 </uib-tabset>
597 </fieldset> 602 </fieldset>
598 </form> 603 </form>
599 </div> 604 </div>
600 <div class="modal-footer py-1"> 605 <div class="modal-footer py-1">
601 <nav ng-show="currentPageClientes.length > 0 && primerBusqueda && !ingreso" class="mr-auto"> 606 <nav ng-show="currentPageClientes.length > 0 && primerBusqueda && !ingreso" class="mr-auto">
602 <ul class="pagination pagination-sm mb-0"> 607 <ul class="pagination pagination-sm mb-0">
603 <li class="page-item" ng-class="{'disabled': currentPage == 1}"> 608 <li class="page-item" ng-class="{'disabled': currentPage == 1}">
604 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)"> 609 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)">
605 <span aria-hidden="true">&laquo;</span> 610 <span aria-hidden="true">&laquo;</span>
606 <span class="sr-only">Anterior</span> 611 <span class="sr-only">Anterior</span>
607 </a> 612 </a>
608 </li> 613 </li>
609 <li 614 <li
610 class="page-item" 615 class="page-item"
611 ng-repeat="pagina in paginas" 616 ng-repeat="pagina in paginas"
612 ng-class="{'active': pagina == currentPage}" 617 ng-class="{'active': pagina == currentPage}"
613 > 618 >
614 <a 619 <a
615 class="page-link" 620 class="page-link"
616 href="javascript:void()" 621 href="javascript:void()"
617 ng-click="selectPage(pagina)" 622 ng-click="selectPage(pagina)"
618 ng-bind="pagina" 623 ng-bind="pagina"
619 ></a> 624 ></a>
620 </li> 625 </li>
621 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> 626 <li class="page-item" ng-class="{'disabled': currentPage == lastPage}">
622 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)"> 627 <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)">
623 <span aria-hidden="true">&raquo;</span> 628 <span aria-hidden="true">&raquo;</span>
624 <span class="sr-only">Siguiente</span> 629 <span class="sr-only">Siguiente</span>
625 </a> 630 </a>
626 </li> 631 </li>
627 </ul> 632 </ul>
628 </nav> 633 </nav>
629 <button 634 <button
630 class="btn btn-sm btn-secondary" 635 class="btn btn-sm btn-secondary"
631 type="button" 636 type="button"
632 ng-click="cancel()">Cancelar 637 ng-click="cancel()">Cancelar
633 </button> 638 </button>
634 <button 639 <button
635 class="btn btn-sm btn-primary" 640 class="btn btn-sm btn-primary"
636 type="button" 641 type="button"
637 ng-show="ingreso" 642 ng-show="ingreso"
638 ng-click="guardar()" 643 ng-click="guardar()"
639 >Guardar 644 >Guardar
640 </button> 645 </button>
641 </div> 646 </div>
642 647