Commit ae1676e213247dfca5e5c7b30d18325f5b2725a9

Authored by Jose Pinto
Exists in master

Merge branch 'master' into 'master'

Master(efernandez)

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