Commit 199149c13b0995688927a1632cd561d12db7c272

Authored by Jose Pinto
1 parent 60fba4e85e
Exists in master

fuera bug sobreescribe numero cantidad

Showing 1 changed file with 0 additions and 1 deletions   Show diff stats
src/views/remito.html
1 <div class="crear-nota-remito"> 1 <div class="crear-nota-remito">
2 <form name="formCrearNota" ng-submit="crearRemito()" class="mb-0"> 2 <form name="formCrearNota" ng-submit="crearRemito()" class="mb-0">
3 <div class="row"> 3 <div class="row">
4 <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2"> 4 <div class="col-md-10 offset-md-1 col-lg-8 offset-lg-2">
5 <div class="row p-1 panel-informativo"> 5 <div class="row p-1 panel-informativo">
6 <div class="col-12"> 6 <div class="col-12">
7 <div class="row"> 7 <div class="row">
8 <div class="col-12 col-sm-4 nota-remito"> 8 <div class="col-12 col-sm-4 nota-remito">
9 <h5>REMITO</h5> 9 <h5>REMITO</h5>
10 </div> 10 </div>
11 <div class="col-5 col-sm-4 numero-remito" 11 <div class="col-5 col-sm-4 numero-remito"
12 > 12 >
13 Nº {{puntoVenta}}-{{comprobante}} 13 Nº {{puntoVenta}}-{{comprobante}}
14 <button 14 <button
15 class="btn btn-xs btn-outline-dark" 15 class="btn btn-xs btn-outline-dark"
16 type="button" 16 type="button"
17 ng-click="seleccionarRemito()" 17 ng-click="seleccionarRemito()"
18 > 18 >
19 <i class="fa fa-search"></i> 19 <i class="fa fa-search"></i>
20 </button> 20 </button>
21 </div> 21 </div>
22 <div class="col-7 col-sm-4 text-right"> 22 <div class="col-7 col-sm-4 text-right">
23 Fecha: 23 Fecha:
24 <span 24 <span
25 ng-show="!datepickerAbierto" 25 ng-show="!datepickerAbierto"
26 ng-bind="now | date:'dd/MM/yyyy HH:mm'" 26 ng-bind="now | date:'dd/MM/yyyy HH:mm'"
27 ng-click="datepickerAbierto = true" 27 ng-click="datepickerAbierto = true"
28 > 28 >
29 </span> 29 </span>
30 <input 30 <input
31 ng-show="datepickerAbierto" 31 ng-show="datepickerAbierto"
32 type="date" 32 type="date"
33 ng-model="now" 33 ng-model="now"
34 ng-change="datepickerAbierto = false" 34 ng-change="datepickerAbierto = false"
35 ng-blur="datepickerAbierto = false" 35 ng-blur="datepickerAbierto = false"
36 class="form-control form-control-sm col-8 float-right" 36 class="form-control form-control-sm col-8 float-right"
37 foca-focus="datepickerAbierto" 37 foca-focus="datepickerAbierto"
38 hasta-hoy 38 hasta-hoy
39 /> 39 />
40 </div> 40 </div>
41 </div> 41 </div>
42 <div class="row"> 42 <div class="row">
43 <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera"> 43 <div class="col-auto" ng-repeat="cab in cabecera" ng-show="showCabecera">
44 <span class="label" ng-bind="cab.label"></span> 44 <span class="label" ng-bind="cab.label"></span>
45 <span class="valor" ng-bind="cab.valor"></span> 45 <span class="valor" ng-bind="cab.valor"></span>
46 </div> 46 </div>
47 <a 47 <a
48 class="btn col-12 btn-secondary d-sm-none" 48 class="btn col-12 btn-secondary d-sm-none"
49 ng-show="cabecera.length > 0" 49 ng-show="cabecera.length > 0"
50 ng-click="showCabecera = !showCabecera" 50 ng-click="showCabecera = !showCabecera"
51 > 51 >
52 <i 52 <i
53 class="fa fa-chevron-down" 53 class="fa fa-chevron-down"
54 ng-hide="showCabecera" 54 ng-hide="showCabecera"
55 aria-hidden="true" 55 aria-hidden="true"
56 > 56 >
57 </i> 57 </i>
58 <i 58 <i
59 class="fa fa-chevron-up" 59 class="fa fa-chevron-up"
60 ng-show="showCabecera" 60 ng-show="showCabecera"
61 aria-hidden="true"> 61 aria-hidden="true">
62 </i> 62 </i>
63 </a> 63 </a>
64 </div> 64 </div>
65 </div> 65 </div>
66 </div> 66 </div>
67 <div class="row p-1 botonera-secundaria"> 67 <div class="row p-1 botonera-secundaria">
68 <div class="col-12"> 68 <div class="col-12">
69 <div class="row"> 69 <div class="row">
70 <div class="col-6 col-sm-3 px-0 py-0" ng-repeat="boton in botonera"> 70 <div class="col-6 col-sm-3 px-0 py-0" ng-repeat="boton in botonera">
71 <button 71 <button
72 type="button" 72 type="button"
73 class="btn btn-default btn-block btn-xs text-left py-2" 73 class="btn btn-default btn-block btn-xs text-left py-2"
74 ng-click="boton.accion()" 74 ng-click="boton.accion()"
75 ng-class="{'d-none d-sm-block': boton.texto == ''}" 75 ng-class="{'d-none d-sm-block': boton.texto == ''}"
76 > 76 >
77 <i 77 <i
78 class="fa fa-arrow-circle-right" 78 class="fa fa-arrow-circle-right"
79 ng-show="boton.texto != ''" 79 ng-show="boton.texto != ''"
80 ></i> 80 ></i>
81 &nbsp; 81 &nbsp;
82 {{boton.texto}} 82 {{boton.texto}}
83 </button> 83 </button>
84 </div> 84 </div>
85 </div> 85 </div>
86 </div> 86 </div>
87 </div> 87 </div>
88 </div> 88 </div>
89 </div> 89 </div>
90 </form> 90 </form>
91 <div class="row"> 91 <div class="row">
92 <div class="col-12 col-md-10 col-lg-8 offset-md-1 offset-lg-2"> 92 <div class="col-12 col-md-10 col-lg-8 offset-md-1 offset-lg-2">
93 <!-- PC --> 93 <!-- PC -->
94 <div class="row grilla-articulo align-items-end d-none d-sm-flex"> 94 <div class="row grilla-articulo align-items-end d-none d-sm-flex">
95 <table class="table tabla-articulo table-striped table-sm table-dark"> 95 <table class="table tabla-articulo table-striped table-sm table-dark">
96 <thead> 96 <thead>
97 <tr class="d-flex"> 97 <tr class="d-flex">
98 <th class="">#</th> 98 <th class="">#</th>
99 <th class="col">Código</th> 99 <th class="col">Código</th>
100 <th class="col-4">Descripción</th> 100 <th class="col-4">Descripción</th>
101 <th class="col text-right">Cantidad</th> 101 <th class="col text-right">Cantidad</th>
102 <th class="col text-right">Precio Unitario</th> 102 <th class="col text-right">Precio Unitario</th>
103 <th class="col text-right">SubTotal</th> 103 <th class="col text-right">SubTotal</th>
104 <th class="text-right"> 104 <th class="text-right">
105 <button 105 <button
106 class="btn btn-outline-secondary selectable" 106 class="btn btn-outline-secondary selectable"
107 ng-click="show = !show; masMenos()" 107 ng-click="show = !show; masMenos()"
108 > 108 >
109 <i 109 <i
110 class="fa fa-chevron-down" 110 class="fa fa-chevron-down"
111 ng-show="show" 111 ng-show="show"
112 aria-hidden="true" 112 aria-hidden="true"
113 > 113 >
114 </i> 114 </i>
115 <i 115 <i
116 class="fa fa-chevron-up" 116 class="fa fa-chevron-up"
117 ng-hide="show" 117 ng-hide="show"
118 aria-hidden="true"> 118 aria-hidden="true">
119 </i> 119 </i>
120 </button> 120 </button>
121 </th> 121 </th>
122 </tr> 122 </tr>
123 </thead> 123 </thead>
124 <tbody class="tabla-articulo-body"> 124 <tbody class="tabla-articulo-body">
125 <tr 125 <tr
126 ng-repeat="(key, articulo) in articulosTabla" 126 ng-repeat="(key, articulo) in articulosTabla"
127 ng-show="show || key == (articulosTabla.length - 1)" 127 ng-show="show || key == (articulosTabla.length - 1)"
128 class="d-flex" 128 class="d-flex"
129 > 129 >
130 <td ng-bind="key + 1"></td> 130 <td ng-bind="key + 1"></td>
131 <td 131 <td
132 class="col" 132 class="col"
133 ng-bind="articulo.sector + '-' + articulo.codigo" 133 ng-bind="articulo.sector + '-' + articulo.codigo"
134 ></td> 134 ></td>
135 <td 135 <td
136 class="col-4" 136 class="col-4"
137 ng-bind="articulo.descripcion" 137 ng-bind="articulo.descripcion"
138 ></td> 138 ></td>
139 <td class="col text-right"> 139 <td class="col text-right">
140 <input 140 <input
141 ng-show="articulo.editCantidad" 141 ng-show="articulo.editCantidad"
142 ng-model="articulo.cantidad" 142 ng-model="articulo.cantidad"
143 class="form-control" 143 class="form-control"
144 foca-tipo-input 144 foca-tipo-input
145 min="1" 145 min="1"
146 foca-focus="articulo.editCantidad" 146 foca-focus="articulo.editCantidad"
147 ng-keypress="editarArticulo($event.keyCode, articulo)" 147 ng-keypress="editarArticulo($event.keyCode, articulo)"
148 ng-focus="selectFocus($event)"
149 teclado-virtual 148 teclado-virtual
150 > 149 >
151 <i 150 <i
152 class="selectable" 151 class="selectable"
153 ng-click="cambioEdit(articulo, 'cantidad')" 152 ng-click="cambioEdit(articulo, 'cantidad')"
154 ng-hide="articulo.editCantidad" 153 ng-hide="articulo.editCantidad"
155 ng-bind="articulo.cantidad"> 154 ng-bind="articulo.cantidad">
156 </i> 155 </i>
157 </td> 156 </td>
158 <td class="col text-right"> 157 <td class="col text-right">
159 <input 158 <input
160 ng-show="articulo.editPrecio" 159 ng-show="articulo.editPrecio"
161 ng-model="articulo.precio" 160 ng-model="articulo.precio"
162 class="form-control" 161 class="form-control"
163 foca-tipo-input 162 foca-tipo-input
164 min="1" 163 min="1"
165 step="0.0001" 164 step="0.0001"
166 foca-focus="articulo.editPrecio" 165 foca-focus="articulo.editPrecio"
167 ng-keypress="editarArticulo($event.keyCode, articulo)" 166 ng-keypress="editarArticulo($event.keyCode, articulo)"
168 ng-focus="selectFocus($event)" 167 ng-focus="selectFocus($event)"
169 teclado-virtual 168 teclado-virtual
170 > 169 >
171 <i 170 <i
172 class="selectable" 171 class="selectable"
173 ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" 172 ng-click="idLista == -1 && cambioEdit(articulo, 'precio')"
174 ng-hide="articulo.editPrecio" 173 ng-hide="articulo.editPrecio"
175 ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"> 174 ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4">
176 </i> 175 </i>
177 </td> 176 </td>
178 <td 177 <td
179 class="col text-right" 178 class="col text-right"
180 ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO"> 179 ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO">
181 </td> 180 </td>
182 <td class="text-center"> 181 <td class="text-center">
183 <button 182 <button
184 class="btn btn-outline-secondary" 183 class="btn btn-outline-secondary"
185 ng-click="quitarArticulo(key)" 184 ng-click="quitarArticulo(key)"
186 > 185 >
187 <i class="fa fa-trash"></i> 186 <i class="fa fa-trash"></i>
188 </button> 187 </button>
189 </td> 188 </td>
190 </tr> 189 </tr>
191 </tbody> 190 </tbody>
192 <tfoot> 191 <tfoot>
193 <tr ng-show="!cargando" class="d-flex"> 192 <tr ng-show="!cargando" class="d-flex">
194 <td 193 <td
195 class="align-middle" 194 class="align-middle"
196 ng-bind="articulosTabla.length + 1" 195 ng-bind="articulosTabla.length + 1"
197 ></td> 196 ></td>
198 <td class="col"> 197 <td class="col">
199 <input 198 <input
200 class="form-control" 199 class="form-control"
201 ng-model="articuloACargar.sectorCodigo" 200 ng-model="articuloACargar.sectorCodigo"
202 readonly 201 readonly
203 > 202 >
204 </td> 203 </td>
205 <td class="col-4 tabla-articulo-descripcion"> 204 <td class="col-4 tabla-articulo-descripcion">
206 <input 205 <input
207 class="form-control" 206 class="form-control"
208 ng-model="articuloACargar.descripcion" 207 ng-model="articuloACargar.descripcion"
209 readonly 208 readonly
210 > 209 >
211 </td> 210 </td>
212 <td class="col text-right"> 211 <td class="col text-right">
213 <input 212 <input
214 class="form-control" 213 class="form-control"
215 foca-tipo-input 214 foca-tipo-input
216 min="1" 215 min="1"
217 ng-model="articuloACargar.cantidad" 216 ng-model="articuloACargar.cantidad"
218 foca-focus="!cargando" 217 foca-focus="!cargando"
219 esc-key="resetFilter()" 218 esc-key="resetFilter()"
220 ng-keypress="agregarATabla($event.keyCode)" 219 ng-keypress="agregarATabla($event.keyCode)"
221 teclado-virtual 220 teclado-virtual
222 > 221 >
223 </td> 222 </td>
224 <td class="col text-right"> 223 <td class="col text-right">
225 <input 224 <input
226 class="form-control" 225 class="form-control"
227 ng-value="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4" 226 ng-value="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"
228 ng-show="idLista != -1" 227 ng-show="idLista != -1"
229 readonly 228 readonly
230 > 229 >
231 <input 230 <input
232 class="form-control" 231 class="form-control"
233 foca-tipo-input 232 foca-tipo-input
234 step="0.0001" 233 step="0.0001"
235 ng-model="articuloACargar.precio" 234 ng-model="articuloACargar.precio"
236 esc-key="resetFilter()" 235 esc-key="resetFilter()"
237 ng-keypress="agregarATabla($event.keyCode)" 236 ng-keypress="agregarATabla($event.keyCode)"
238 ng-show="idLista == -1" 237 ng-show="idLista == -1"
239 teclado-virtual 238 teclado-virtual
240 > 239 >
241 </td> 240 </td>
242 <td class="col text-right"> 241 <td class="col text-right">
243 <input 242 <input
244 class="form-control" 243 class="form-control"
245 ng-value="getSubTotal() | currency: remito.moneda.SIMBOLO" 244 ng-value="getSubTotal() | currency: remito.moneda.SIMBOLO"
246 readonly 245 readonly
247 ></td> 246 ></td>
248 <td class="text-center align-middle"> 247 <td class="text-center align-middle">
249 <button 248 <button
250 class="btn btn-outline-secondary" 249 class="btn btn-outline-secondary"
251 ng-click="agregarATabla(13)" 250 ng-click="agregarATabla(13)"
252 > 251 >
253 <i class="fa fa-save"></i> 252 <i class="fa fa-save"></i>
254 </button> 253 </button>
255 </td> 254 </td>
256 </tr> 255 </tr>
257 <tr ng-show="cargando" class="d-flex"> 256 <tr ng-show="cargando" class="d-flex">
258 <td colspan="7" class="col-12"> 257 <td colspan="7" class="col-12">
259 <input 258 <input
260 placeholder="Seleccione Articulo" 259 placeholder="Seleccione Articulo"
261 class="form-control form-control-sm" 260 class="form-control form-control-sm"
262 readonly 261 readonly
263 ng-click="seleccionarArticulo()" 262 ng-click="seleccionarArticulo()"
264 /> 263 />
265 </td> 264 </td>
266 </tr> 265 </tr>
267 <tr class="d-flex"> 266 <tr class="d-flex">
268 <td colspan="4" class="no-border-top"> 267 <td colspan="4" class="no-border-top">
269 <strong>Items:</strong> 268 <strong>Items:</strong>
270 <a ng-bind="articulosTabla.length"></a> 269 <a ng-bind="articulosTabla.length"></a>
271 </td> 270 </td>
272 <td class="text-right ml-auto table-celda-total no-border-top"> 271 <td class="text-right ml-auto table-celda-total no-border-top">
273 <h3>Total:</h3> 272 <h3>Total:</h3>
274 </td> 273 </td>
275 <td class="table-celda-total text-right no-border-top" colspan="1"> 274 <td class="table-celda-total text-right no-border-top" colspan="1">
276 <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> 275 <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3>
277 </td> 276 </td>
278 <td class="text-right no-border-top"> 277 <td class="text-right no-border-top">
279 <button 278 <button
280 type="button" 279 type="button"
281 class="btn btn-default btn-sm" 280 class="btn btn-default btn-sm"
282 > 281 >
283 Totales 282 Totales
284 </button> 283 </button>
285 </td> 284 </td>
286 </tr> 285 </tr>
287 </tfoot> 286 </tfoot>
288 </table> 287 </table>
289 </div> 288 </div>
290 289
291 <!-- MOBILE --> 290 <!-- MOBILE -->
292 <div class="row d-sm-none"> 291 <div class="row d-sm-none">
293 <table class="table table-sm table-striped table-dark margin-bottom-mobile"> 292 <table class="table table-sm table-striped table-dark margin-bottom-mobile">
294 <thead> 293 <thead>
295 <tr class="d-flex"> 294 <tr class="d-flex">
296 <th class="">#</th> 295 <th class="">#</th>
297 <th class="col px-0"> 296 <th class="col px-0">
298 <div class="d-flex"> 297 <div class="d-flex">
299 <div class="col-4 px-1">Código</div> 298 <div class="col-4 px-1">Código</div>
300 <div class="col-8 px-1">Descripción</div> 299 <div class="col-8 px-1">Descripción</div>
301 </div> 300 </div>
302 <div class="d-flex"> 301 <div class="d-flex">
303 <div class="col-3 px-1">Cantidad</div> 302 <div class="col-3 px-1">Cantidad</div>
304 <div class="col px-1 text-right">P. Uni.</div> 303 <div class="col px-1 text-right">P. Uni.</div>
305 <div class="col px-1 text-right">Subtotal</div> 304 <div class="col px-1 text-right">Subtotal</div>
306 </div> 305 </div>
307 </th> 306 </th>
308 <th class="text-center tamaño-boton"> 307 <th class="text-center tamaño-boton">
309 &nbsp; 308 &nbsp;
310 </th> 309 </th>
311 </tr> 310 </tr>
312 </thead> 311 </thead>
313 <tbody> 312 <tbody>
314 <tr 313 <tr
315 ng-repeat="(key, articulo) in articulosTabla" 314 ng-repeat="(key, articulo) in articulosTabla"
316 ng-show="show || key == articulosTabla.length - 1" 315 ng-show="show || key == articulosTabla.length - 1"
317 > 316 >
318 <td class="w-100 align-middle d-flex p-0"> 317 <td class="w-100 align-middle d-flex p-0">
319 <div class="align-middle p-1"> 318 <div class="align-middle p-1">
320 <span ng-bind="key+1" class="align-middle"></span> 319 <span ng-bind="key+1" class="align-middle"></span>
321 </div> 320 </div>
322 <div class="col px-0"> 321 <div class="col px-0">
323 <div class="d-flex"> 322 <div class="d-flex">
324 <div class="col-4 px-1"> 323 <div class="col-4 px-1">
325 <span 324 <span
326 ng-bind="articulo.sector + '-' + articulo.codigo" 325 ng-bind="articulo.sector + '-' + articulo.codigo"
327 ></span> 326 ></span>
328 </div> 327 </div>
329 <div class="col-8 px-1"> 328 <div class="col-8 px-1">
330 <span 329 <span
331 ng-bind="'x' + articulo.cantidad" 330 ng-bind="'x' + articulo.cantidad"
332 ng-hide="articulo.editCantidad" 331 ng-hide="articulo.editCantidad"
333 ></span> 332 ></span>
334 <i 333 <i
335 class="fa fa-pencil text-white-50" 334 class="fa fa-pencil text-white-50"
336 aria-hidden="true" 335 aria-hidden="true"
337 ng-hide="articulo.editCantidad" 336 ng-hide="articulo.editCantidad"
338 ng-click="articulo.editCantidad = true" 337 ng-click="articulo.editCantidad = true"
339 ></i> 338 ></i>
340 <input 339 <input
341 ng-show="articulo.editCantidad" 340 ng-show="articulo.editCantidad"
342 ng-model="articulo.cantidad" 341 ng-model="articulo.cantidad"
343 class="form-control" 342 class="form-control"
344 foca-tipo-input 343 foca-tipo-input
345 min="1" 344 min="1"
346 step="0.001" 345 step="0.001"
347 foca-focus="articulo.editCantidad" 346 foca-focus="articulo.editCantidad"
348 ng-keypress="editarArticulo($event.keyCode, articulo)" 347 ng-keypress="editarArticulo($event.keyCode, articulo)"
349 ng-focus="selectFocus($event)" 348 ng-focus="selectFocus($event)"
350 > 349 >
351 </div> 350 </div>
352 </div> 351 </div>
353 <div class="d-flex"> 352 <div class="d-flex">
354 <div class="col-3 px-1"> 353 <div class="col-3 px-1">
355 <span ng-bind="'x' + articulo.cantidad"></span> 354 <span ng-bind="'x' + articulo.cantidad"></span>
356 </div> 355 </div>
357 <div class="col px-1 text-right"> 356 <div class="col px-1 text-right">
358 <span ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"></span> 357 <span ng-bind="articulo.precio | currency: remito.moneda.SIMBOLO : 4"></span>
359 </div> 358 </div>
360 <div class="col px-1 text-right"> 359 <div class="col px-1 text-right">
361 <span 360 <span
362 ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO" 361 ng-bind="(articulo.precio * articulo.cantidad) | currency: remito.moneda.SIMBOLO"
363 > 362 >
364 </span> 363 </span>
365 </div> 364 </div>
366 </div> 365 </div>
367 </div> 366 </div>
368 <div class="align-middle p-1"> 367 <div class="align-middle p-1">
369 <button 368 <button
370 class="btn btn-outline-secondary" 369 class="btn btn-outline-secondary"
371 ng-click="quitarArticulo(key)" 370 ng-click="quitarArticulo(key)"
372 > 371 >
373 <i class="fa fa-trash"></i> 372 <i class="fa fa-trash"></i>
374 </button> 373 </button>
375 </div> 374 </div>
376 </td> 375 </td>
377 </tr> 376 </tr>
378 </tbody> 377 </tbody>
379 <tfoot> 378 <tfoot>
380 <!-- CARGANDO ITEM --> 379 <!-- CARGANDO ITEM -->
381 <tr ng-show="!cargando" class="d-flex"> 380 <tr ng-show="!cargando" class="d-flex">
382 <td 381 <td
383 class="align-middle p-1" 382 class="align-middle p-1"
384 ng-bind="articulosTabla.length + 1" 383 ng-bind="articulosTabla.length + 1"
385 ></td> 384 ></td>
386 <td class="col p-0"> 385 <td class="col p-0">
387 <div class="d-flex"> 386 <div class="d-flex">
388 <div class="col-4 px-1"> 387 <div class="col-4 px-1">
389 <span 388 <span
390 ng-bind="articuloACargar.sectorCodigo" 389 ng-bind="articuloACargar.sectorCodigo"
391 ></span> 390 ></span>
392 </div> 391 </div>
393 <div class="col-8 px-1"> 392 <div class="col-8 px-1">
394 <span ng-bind="articuloACargar.descripcion"></span> 393 <span ng-bind="articuloACargar.descripcion"></span>
395 </div> 394 </div>
396 </div> 395 </div>
397 <div class="d-flex"> 396 <div class="d-flex">
398 <div class="col-3 px-1 m-1"> 397 <div class="col-3 px-1 m-1">
399 <input 398 <input
400 class="form-control p-1" 399 class="form-control p-1"
401 foca-tipo-input 400 foca-tipo-input
402 min="1" 401 min="1"
403 ng-model="articuloACargar.cantidad" 402 ng-model="articuloACargar.cantidad"
404 foca-focus="!cargando" 403 foca-focus="!cargando"
405 ng-keypress="agregarATabla($event.keyCode)" 404 ng-keypress="agregarATabla($event.keyCode)"
406 style="height: auto; line-height: 1.1em" 405 style="height: auto; line-height: 1.1em"
407 > 406 >
408 </div> 407 </div>
409 <div class="col px-1 text-right"> 408 <div class="col px-1 text-right">
410 <span ng-bind="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"></span> 409 <span ng-bind="articuloACargar.precio | currency: remito.moneda.SIMBOLO : 4"></span>
411 </div> 410 </div>
412 <div class="col px-1 text-right"> 411 <div class="col px-1 text-right">
413 <span 412 <span
414 ng-bind="getSubTotal() | currency: remito.moneda.SIMBOLO" 413 ng-bind="getSubTotal() | currency: remito.moneda.SIMBOLO"
415 > 414 >
416 </span> 415 </span>
417 </div> 416 </div>
418 </div> 417 </div>
419 </td> 418 </td>
420 <td class="text-center align-middle"> 419 <td class="text-center align-middle">
421 <button 420 <button
422 class="btn btn-outline-secondary" 421 class="btn btn-outline-secondary"
423 ng-click="agregarATabla(13)" 422 ng-click="agregarATabla(13)"
424 > 423 >
425 <i class="fa fa-save"></i> 424 <i class="fa fa-save"></i>
426 </button> 425 </button>
427 </td> 426 </td>
428 </tr> 427 </tr>
429 <!-- SELECCIONAR PRODUCTO --> 428 <!-- SELECCIONAR PRODUCTO -->
430 <tr ng-show="cargando" class="d-flex"> 429 <tr ng-show="cargando" class="d-flex">
431 <td class="col-12"> 430 <td class="col-12">
432 <input 431 <input
433 placeholder="Seleccione Articulo" 432 placeholder="Seleccione Articulo"
434 class="form-control form-control-sm" 433 class="form-control form-control-sm"
435 readonly 434 readonly
436 ng-click="seleccionarArticulo()" 435 ng-click="seleccionarArticulo()"
437 /> 436 />
438 </td> 437 </td>
439 </tr> 438 </tr>
440 <!-- TOOGLE EXPANDIR --> 439 <!-- TOOGLE EXPANDIR -->
441 <tr> 440 <tr>
442 <td class="col"> 441 <td class="col">
443 <button 442 <button
444 class="btn btn-outline-secondary selectable w-100" 443 class="btn btn-outline-secondary selectable w-100"
445 ng-click="show = !show; masMenos()" 444 ng-click="show = !show; masMenos()"
446 ng-show="articulosTabla.length > 0" 445 ng-show="articulosTabla.length > 0"
447 > 446 >
448 <i 447 <i
449 class="fa fa-chevron-down" 448 class="fa fa-chevron-down"
450 ng-hide="show" 449 ng-hide="show"
451 aria-hidden="true" 450 aria-hidden="true"
452 > 451 >
453 </i> 452 </i>
454 <i 453 <i
455 class="fa fa-chevron-up" 454 class="fa fa-chevron-up"
456 ng-show="show" 455 ng-show="show"
457 aria-hidden="true"> 456 aria-hidden="true">
458 </i> 457 </i>
459 </button> 458 </button>
460 </td> 459 </td>
461 </tr> 460 </tr>
462 <!-- FOOTER --> 461 <!-- FOOTER -->
463 <tr class="d-flex"> 462 <tr class="d-flex">
464 <td class="align-middle no-border-top" colspan="2"> 463 <td class="align-middle no-border-top" colspan="2">
465 <strong>Cantidad Items:</strong> 464 <strong>Cantidad Items:</strong>
466 <a ng-bind="articulosTabla.length"></a> 465 <a ng-bind="articulosTabla.length"></a>
467 </td> 466 </td>
468 <td class="text-right ml-auto table-celda-total no-border-top"> 467 <td class="text-right ml-auto table-celda-total no-border-top">
469 <h3>Total:</h3> 468 <h3>Total:</h3>
470 </td> 469 </td>
471 <td class="table-celda-total text-right no-border-top"> 470 <td class="table-celda-total text-right no-border-top">
472 <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3> 471 <h3>{{getTotal() | currency: remito.moneda.SIMBOLO}}</h3>
473 </td> 472 </td>
474 </tr> 473 </tr>
475 </tfoot> 474 </tfoot>
476 </table> 475 </table>
477 </div> 476 </div>
478 </div> 477 </div>
479 <div class="col-auto my-2 col-lg-2 botonera-lateral d-none d-md-block"> 478 <div class="col-auto my-2 col-lg-2 botonera-lateral d-none d-md-block">
480 <div class="row align-items-end"> 479 <div class="row align-items-end">
481 <div class="col-12"> 480 <div class="col-12">
482 <button 481 <button
483 ng-click="crearRemito()" 482 ng-click="crearRemito()"
484 type="submit" 483 type="submit"
485 title="Crear nota remito" 484 title="Crear nota remito"
486 class="btn btn-default btn-block mb-2" 485 class="btn btn-default btn-block mb-2"
487 ng-disabled="remito.estado === 5" 486 ng-disabled="remito.estado === 5"
488 >Guardar 487 >Guardar
489 </button> 488 </button>
490 <button 489 <button
491 ng-click="salir()" 490 ng-click="salir()"
492 type="button" 491 type="button"
493 title="Salir" 492 title="Salir"
494 class="btn btn-default btn-block"> 493 class="btn btn-default btn-block">
495 Salir 494 Salir
496 </button> 495 </button>
497 </div> 496 </div>
498 </div> 497 </div>
499 </div> 498 </div>
500 </div> 499 </div>
501 <div class="row d-md-none fixed-bottom"> 500 <div class="row d-md-none fixed-bottom">
502 <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> 501 <div class="w-100 bg-dark d-flex px-3 acciones-mobile">
503 <span class="ml-3 text-muted" ng-click="salir()">Salir</span> 502 <span class="ml-3 text-muted" ng-click="salir()">Salir</span>
504 <span class="mr-3 ml-auto" ng-click="crearRemito()">Guardar</span> 503 <span class="mr-3 ml-auto" ng-click="crearRemito()">Guardar</span>
505 </div> 504 </div>
506 </div> 505 </div>
507 </div> 506 </div>
508 507