Commit 204d9b9e9e5e4e1836636d424cbc10c28647ae1b
1 parent
bf919dbef4
Exists in
master
ng bind
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/views/nota-pedido.html
1 | <div class="crear-nota-pedido foca-crear row"> | 1 | <div class="crear-nota-pedido foca-crear row"> |
2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador |
3 | titulo="'Nota de pedido'" | 3 | titulo="'Nota de pedido'" |
4 | numero="puntoVenta + '-' + comprobante" | 4 | numero="puntoVenta + '-' + comprobante" |
5 | fecha="notaPedido.fechaCarga" | 5 | fecha="notaPedido.fechaCarga" |
6 | class="mb-0 col-lg-12" | 6 | class="mb-0 col-lg-12" |
7 | busqueda="seleccionarNotaPedido" | 7 | busqueda="seleccionarNotaPedido" |
8 | ></foca-cabecera-facturador> | 8 | ></foca-cabecera-facturador> |
9 | <marquee | 9 | <marquee |
10 | bgcolor="#FF9900" | 10 | bgcolor="#FF9900" |
11 | behavior="scroll" | 11 | behavior="scroll" |
12 | direction="left" | 12 | direction="left" |
13 | >{{notaPedido.observaciones}}</marquee> | 13 | ng-bind="notaPedido.observaciones" |
14 | ></marquee> | ||
14 | <div class="col-lg-12"> | 15 | <div class="col-lg-12"> |
15 | <div class="row"> | 16 | <div class="row"> |
16 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> | 17 | <div class="col-12 col-md-10 col-lg-10 border border-light rounded"> |
17 | <div class="row py-2 botonera-secundaria"> | 18 | <div class="row py-2 botonera-secundaria"> |
18 | <div class="col-12 foca-facturador-px"> | 19 | <div class="col-12 foca-facturador-px"> |
19 | <foca-botonera-facturador botones="botonera" extra="5" class="row"></foca-botonera-facturador> | 20 | <foca-botonera-facturador botones="botonera" extra="5" class="row"></foca-botonera-facturador> |
20 | </div> | 21 | </div> |
21 | </div> | 22 | </div> |
22 | <!-- PC --> | 23 | <!-- PC --> |
23 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> | 24 | <div class="row grilla-articulo align-items-end d-none d-sm-flex"> |
24 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> | 25 | <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> |
25 | <thead> | 26 | <thead> |
26 | <tr class="d-flex"> | 27 | <tr class="d-flex"> |
27 | <th valign="middle" class="">#</th> | 28 | <th valign="middle" class="">#</th> |
28 | <th valign="middle" class="col">Código</th> | 29 | <th valign="middle" class="col">Código</th> |
29 | <th valign="middle" class="col-4">Descripción</th> | 30 | <th valign="middle" class="col-4">Descripción</th> |
30 | <th valign="middle" class="col text-right">Cantidad</th> | 31 | <th valign="middle" class="col text-right">Cantidad</th> |
31 | <th valign="middle" class="col text-right">Precio Unitario</th> | 32 | <th valign="middle" class="col text-right">Precio Unitario</th> |
32 | <th valign="middle" class="col text-right">SubTotal</th> | 33 | <th valign="middle" class="col text-right">SubTotal</th> |
33 | <th valign="middle" class="text-right"> | 34 | <th valign="middle" class="text-right"> |
34 | <button | 35 | <button |
35 | class="btn btn-outline-light selectable" | 36 | class="btn btn-outline-light selectable" |
36 | ng-click="show = !show; masMenos()" | 37 | ng-click="show = !show; masMenos()" |
37 | > | 38 | > |
38 | <i | 39 | <i |
39 | class="fa fa-chevron-down" | 40 | class="fa fa-chevron-down" |
40 | ng-show="show" | 41 | ng-show="show" |
41 | aria-hidden="true" | 42 | aria-hidden="true" |
42 | > | 43 | > |
43 | </i> | 44 | </i> |
44 | <i | 45 | <i |
45 | class="fa fa-chevron-up" | 46 | class="fa fa-chevron-up" |
46 | ng-hide="show" | 47 | ng-hide="show" |
47 | aria-hidden="true"> | 48 | aria-hidden="true"> |
48 | </i> | 49 | </i> |
49 | </button> | 50 | </button> |
50 | </th> | 51 | </th> |
51 | </tr> | 52 | </tr> |
52 | </thead> | 53 | </thead> |
53 | <tbody class="tabla-articulo-body"> | 54 | <tbody class="tabla-articulo-body"> |
54 | <tr | 55 | <tr |
55 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" | 56 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" |
56 | ng-show="show || key == (notaPedido.articulosNotaPedido.length - 1)" | 57 | ng-show="show || key == (notaPedido.articulosNotaPedido.length - 1)" |
57 | class="d-flex" | 58 | class="d-flex" |
58 | > | 59 | > |
59 | <td ng-bind="key + 1"></td> | 60 | <td ng-bind="key + 1"></td> |
60 | <td | 61 | <td |
61 | class="col" | 62 | class="col" |
62 | ng-bind="articulo.sector + '-' + articulo.codigo" | 63 | ng-bind="articulo.sector + '-' + articulo.codigo" |
63 | ></td> | 64 | ></td> |
64 | <td | 65 | <td |
65 | class="col-4" | 66 | class="col-4" |
66 | ng-bind="articulo.descripcion" | 67 | ng-bind="articulo.descripcion" |
67 | ></td> | 68 | ></td> |
68 | <td class="col text-right"> | 69 | <td class="col text-right"> |
69 | <input | 70 | <input |
70 | ng-show="articulo.editCantidad" | 71 | ng-show="articulo.editCantidad" |
71 | ng-model="articulo.cantidad" | 72 | ng-model="articulo.cantidad" |
72 | class="form-control" | 73 | class="form-control" |
73 | foca-tipo-input | 74 | foca-tipo-input |
74 | min="1" | 75 | min="1" |
75 | step="0.001" | 76 | step="0.001" |
76 | foca-focus="articulo.editCantidad" | 77 | foca-focus="articulo.editCantidad" |
77 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 78 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
78 | ng-focus="selectFocus($event)" | 79 | ng-focus="selectFocus($event)" |
79 | teclado-virtual | 80 | teclado-virtual |
80 | > | 81 | > |
81 | <i | 82 | <i |
82 | class="selectable" | 83 | class="selectable" |
83 | ng-click="cambioEdit(articulo, 'cantidad')" | 84 | ng-click="cambioEdit(articulo, 'cantidad')" |
84 | ng-hide="articulo.editCantidad" | 85 | ng-hide="articulo.editCantidad" |
85 | ng-bind="articulo.cantidad"> | 86 | ng-bind="articulo.cantidad"> |
86 | </i> | 87 | </i> |
87 | </td> | 88 | </td> |
88 | <td class="col text-right"> | 89 | <td class="col text-right"> |
89 | <input | 90 | <input |
90 | ng-show="articulo.editPrecio" | 91 | ng-show="articulo.editPrecio" |
91 | ng-model="articulo.precio" | 92 | ng-model="articulo.precio" |
92 | class="form-control" | 93 | class="form-control" |
93 | foca-tipo-input | 94 | foca-tipo-input |
94 | min="0" | 95 | min="0" |
95 | step="0.0001" | 96 | step="0.0001" |
96 | foca-focus="articulo.editPrecio" | 97 | foca-focus="articulo.editPrecio" |
97 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 98 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
98 | ng-focus="selectFocus($event)" | 99 | ng-focus="selectFocus($event)" |
99 | teclado-virtual | 100 | teclado-virtual |
100 | > | 101 | > |
101 | <i | 102 | <i |
102 | class="selectable" | 103 | class="selectable" |
103 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" | 104 | ng-click="idLista == -1 && cambioEdit(articulo, 'precio')" |
104 | ng-hide="articulo.editPrecio" | 105 | ng-hide="articulo.editPrecio" |
105 | ng-bind="articulo.precio | | 106 | ng-bind="articulo.precio | |
106 | number: 4"> | 107 | number: 4"> |
107 | </i> | 108 | </i> |
108 | </td> | 109 | </td> |
109 | <td | 110 | <td |
110 | class="col text-right" | 111 | class="col text-right" |
111 | ng-bind="(articulo.precio * articulo.cantidad) | | 112 | ng-bind="(articulo.precio * articulo.cantidad) | |
112 | number: 2"> | 113 | number: 2"> |
113 | </td> | 114 | </td> |
114 | <td class="text-center"> | 115 | <td class="text-center"> |
115 | <button | 116 | <button |
116 | ng-show="articulo.editCantidad || articulo.editPrecio" | 117 | ng-show="articulo.editCantidad || articulo.editPrecio" |
117 | class="btn btn-outline-light" | 118 | class="btn btn-outline-light" |
118 | ng-click="editarArticulo(13, articulo)" | 119 | ng-click="editarArticulo(13, articulo)" |
119 | > | 120 | > |
120 | <i class="fa fa-save"></i> | 121 | <i class="fa fa-save"></i> |
121 | </button> | 122 | </button> |
122 | <button | 123 | <button |
123 | class="btn btn-outline-light" | 124 | class="btn btn-outline-light" |
124 | ng-click="quitarArticulo(key)" | 125 | ng-click="quitarArticulo(key)" |
125 | > | 126 | > |
126 | <i class="fa fa-trash"></i> | 127 | <i class="fa fa-trash"></i> |
127 | </button> | 128 | </button> |
128 | </td> | 129 | </td> |
129 | </tr> | 130 | </tr> |
130 | </tbody> | 131 | </tbody> |
131 | <tfoot> | 132 | <tfoot> |
132 | <tr ng-show="!cargando" class="d-flex"> | 133 | <tr ng-show="!cargando" class="d-flex"> |
133 | <td | 134 | <td |
134 | class="align-middle" | 135 | class="align-middle" |
135 | ng-bind="notaPedido.articulosNotaPedido.length + 1" | 136 | ng-bind="notaPedido.articulosNotaPedido.length + 1" |
136 | ></td> | 137 | ></td> |
137 | <td class="col"> | 138 | <td class="col"> |
138 | <input | 139 | <input |
139 | class="form-control" | 140 | class="form-control" |
140 | ng-model="articuloACargar.sectorCodigo" | 141 | ng-model="articuloACargar.sectorCodigo" |
141 | readonly | 142 | readonly |
142 | > | 143 | > |
143 | </td> | 144 | </td> |
144 | <td class="col-4 tabla-articulo-descripcion"> | 145 | <td class="col-4 tabla-articulo-descripcion"> |
145 | <input | 146 | <input |
146 | class="form-control" | 147 | class="form-control" |
147 | ng-model="articuloACargar.descripcion" | 148 | ng-model="articuloACargar.descripcion" |
148 | readonly | 149 | readonly |
149 | > | 150 | > |
150 | </td> | 151 | </td> |
151 | <td class="col text-right"> | 152 | <td class="col text-right"> |
152 | <input | 153 | <input |
153 | class="form-control" | 154 | class="form-control" |
154 | foca-tipo-input | 155 | foca-tipo-input |
155 | min="1" | 156 | min="1" |
156 | step="0.001" | 157 | step="0.001" |
157 | ng-model="articuloACargar.cantidad" | 158 | ng-model="articuloACargar.cantidad" |
158 | foca-focus="!cargando" | 159 | foca-focus="!cargando" |
159 | esc-key="resetFilter()" | 160 | esc-key="resetFilter()" |
160 | ng-keypress="agregarATabla($event.keyCode)" | 161 | ng-keypress="agregarATabla($event.keyCode)" |
161 | teclado-virtual | 162 | teclado-virtual |
162 | > | 163 | > |
163 | </td> | 164 | </td> |
164 | <td class="col text-right"> | 165 | <td class="col text-right"> |
165 | <input | 166 | <input |
166 | class="form-control" | 167 | class="form-control" |
167 | ng-value="articuloACargar.precio | number: 2" | 168 | ng-value="articuloACargar.precio | number: 2" |
168 | ng-show="idLista != -1" | 169 | ng-show="idLista != -1" |
169 | readonly | 170 | readonly |
170 | > | 171 | > |
171 | <input | 172 | <input |
172 | class="form-control" | 173 | class="form-control" |
173 | foca-tipo-input | 174 | foca-tipo-input |
174 | min="0" | 175 | min="0" |
175 | step="0.0001" | 176 | step="0.0001" |
176 | ng-model="articuloACargar.precio" | 177 | ng-model="articuloACargar.precio" |
177 | esc-key="resetFilter()" | 178 | esc-key="resetFilter()" |
178 | ng-keypress="agregarATabla($event.keyCode)" | 179 | ng-keypress="agregarATabla($event.keyCode)" |
179 | ng-show="idLista == -1" | 180 | ng-show="idLista == -1" |
180 | teclado-virtual | 181 | teclado-virtual |
181 | > | 182 | > |
182 | </td> | 183 | </td> |
183 | <td class="col text-right"> | 184 | <td class="col text-right"> |
184 | <input | 185 | <input |
185 | class="form-control" | 186 | class="form-control" |
186 | ng-value="getSubTotal() | number: 2" | 187 | ng-value="getSubTotal() | number: 2" |
187 | readonly | 188 | readonly |
188 | ></td> | 189 | ></td> |
189 | <td class="text-center align-middle"> | 190 | <td class="text-center align-middle"> |
190 | <button | 191 | <button |
191 | class="btn btn-outline-light" | 192 | class="btn btn-outline-light" |
192 | ng-click="agregarATabla(13)" | 193 | ng-click="agregarATabla(13)" |
193 | > | 194 | > |
194 | <i class="fa fa-save"></i> | 195 | <i class="fa fa-save"></i> |
195 | </button> | 196 | </button> |
196 | </td> | 197 | </td> |
197 | </tr> | 198 | </tr> |
198 | <tr class="d-flex"> | 199 | <tr class="d-flex"> |
199 | <td colspan="4" class="no-border-top"> | 200 | <td colspan="4" class="no-border-top"> |
200 | <strong>Items:</strong> | 201 | <strong>Items:</strong> |
201 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> | 202 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> |
202 | </td> | 203 | </td> |
203 | <td class="text-right ml-auto table-celda-total no-border-top"> | 204 | <td class="text-right ml-auto table-celda-total no-border-top"> |
204 | <h3>Total:</h3> | 205 | <h3>Total:</h3> |
205 | </td> | 206 | </td> |
206 | <td class="table-celda-total text-right no-border-top" colspan="1"> | 207 | <td class="table-celda-total text-right no-border-top" colspan="1"> |
207 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> | 208 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> |
208 | </td> | 209 | </td> |
209 | <td class="text-right no-border-top"> | 210 | <td class="text-right no-border-top"> |
210 | <button | 211 | <button |
211 | type="button" | 212 | type="button" |
212 | class="btn btn-default btn-sm" | 213 | class="btn btn-default btn-sm" |
213 | > | 214 | > |
214 | Totales | 215 | Totales |
215 | </button> | 216 | </button> |
216 | </td> | 217 | </td> |
217 | </tr> | 218 | </tr> |
218 | </tfoot> | 219 | </tfoot> |
219 | </table> | 220 | </table> |
220 | </div> | 221 | </div> |
221 | <!-- MOBILE --> | 222 | <!-- MOBILE --> |
222 | <div class="row d-sm-none"> | 223 | <div class="row d-sm-none"> |
223 | <table class="table table-sm table-striped tabla-articulo margin-bottom-mobile"> | 224 | <table class="table table-sm table-striped tabla-articulo margin-bottom-mobile"> |
224 | <thead> | 225 | <thead> |
225 | <tr class="d-flex"> | 226 | <tr class="d-flex"> |
226 | <th class="">#</th> | 227 | <th class="">#</th> |
227 | <th class="col px-0"> | 228 | <th class="col px-0"> |
228 | <div class="d-flex"> | 229 | <div class="d-flex"> |
229 | <div class="col-4 px-1">Código</div> | 230 | <div class="col-4 px-1">Código</div> |
230 | <div class="col-8 px-1">Descripción</div> | 231 | <div class="col-8 px-1">Descripción</div> |
231 | </div> | 232 | </div> |
232 | <div class="d-flex"> | 233 | <div class="d-flex"> |
233 | <div class="col-3 px-1">Cantidad</div> | 234 | <div class="col-3 px-1">Cantidad</div> |
234 | <div class="col px-1 text-right">P. Uni.</div> | 235 | <div class="col px-1 text-right">P. Uni.</div> |
235 | <div class="col px-1 text-right">Subtotal</div> | 236 | <div class="col px-1 text-right">Subtotal</div> |
236 | </div> | 237 | </div> |
237 | </th> | 238 | </th> |
238 | <th class="text-center tamaño-boton"> | 239 | <th class="text-center tamaño-boton"> |
239 | | 240 | |
240 | </th> | 241 | </th> |
241 | </tr> | 242 | </tr> |
242 | </thead> | 243 | </thead> |
243 | <tbody> | 244 | <tbody> |
244 | <tr | 245 | <tr |
245 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" | 246 | ng-repeat="(key, articulo) in notaPedido.articulosNotaPedido" |
246 | ng-show="show || key == notaPedido.articulosNotaPedido.length - 1" | 247 | ng-show="show || key == notaPedido.articulosNotaPedido.length - 1" |
247 | > | 248 | > |
248 | <td class="w-100 align-middle d-flex p-0"> | 249 | <td class="w-100 align-middle d-flex p-0"> |
249 | <div class="align-middle p-1"> | 250 | <div class="align-middle p-1"> |
250 | <span ng-bind="key+1" class="align-middle"></span> | 251 | <span ng-bind="key+1" class="align-middle"></span> |
251 | </div> | 252 | </div> |
252 | <div class="col px-0"> | 253 | <div class="col px-0"> |
253 | <div class="d-flex"> | 254 | <div class="d-flex"> |
254 | <div class="col-4 px-1"> | 255 | <div class="col-4 px-1"> |
255 | <span | 256 | <span |
256 | ng-bind="articulo.sector + '-' + articulo.codigo" | 257 | ng-bind="articulo.sector + '-' + articulo.codigo" |
257 | ></span> | 258 | ></span> |
258 | </div> | 259 | </div> |
259 | <div class="col-8 px-1"> | 260 | <div class="col-8 px-1"> |
260 | <span ng-bind="articulo.descripcion"></span> | 261 | <span ng-bind="articulo.descripcion"></span> |
261 | </div> | 262 | </div> |
262 | </div> | 263 | </div> |
263 | <div class="d-flex"> | 264 | <div class="d-flex"> |
264 | <div class="col-3 px-1"> | 265 | <div class="col-3 px-1"> |
265 | <span | 266 | <span |
266 | ng-bind="'x' + articulo.cantidad" | 267 | ng-bind="'x' + articulo.cantidad" |
267 | ng-hide="articulo.editCantidad" | 268 | ng-hide="articulo.editCantidad" |
268 | ></span> | 269 | ></span> |
269 | <i | 270 | <i |
270 | class="fa fa-pencil text-white-50" | 271 | class="fa fa-pencil text-white-50" |
271 | aria-hidden="true" | 272 | aria-hidden="true" |
272 | ng-hide="articulo.editCantidad" | 273 | ng-hide="articulo.editCantidad" |
273 | ng-click="articulo.editCantidad = true" | 274 | ng-click="articulo.editCantidad = true" |
274 | ></i> | 275 | ></i> |
275 | <input | 276 | <input |
276 | ng-show="articulo.editCantidad" | 277 | ng-show="articulo.editCantidad" |
277 | ng-model="articulo.cantidad" | 278 | ng-model="articulo.cantidad" |
278 | class="form-control" | 279 | class="form-control" |
279 | foca-tipo-input | 280 | foca-tipo-input |
280 | min="1" | 281 | min="1" |
281 | step="0.001" | 282 | step="0.001" |
282 | foca-focus="articulo.editCantidad" | 283 | foca-focus="articulo.editCantidad" |
283 | ng-keypress="editarArticulo($event.keyCode, articulo)" | 284 | ng-keypress="editarArticulo($event.keyCode, articulo)" |
284 | ng-focus="selectFocus($event)" | 285 | ng-focus="selectFocus($event)" |
285 | > | 286 | > |
286 | </div> | 287 | </div> |
287 | <div class="col px-1 text-right"> | 288 | <div class="col px-1 text-right"> |
288 | <span ng-bind="articulo.precio | | 289 | <span ng-bind="articulo.precio | |
289 | currency: notaPedido.moneda.SIMBOLO : 4"></span> | 290 | currency: notaPedido.moneda.SIMBOLO : 4"></span> |
290 | ></span> | 291 | ></span> |
291 | </div> | 292 | </div> |
292 | <div class="col px-1 text-right"> | 293 | <div class="col px-1 text-right"> |
293 | <span | 294 | <span |
294 | ng-bind="(articulo.precio * articulo.cantidad) | | 295 | ng-bind="(articulo.precio * articulo.cantidad) | |
295 | currency: notaPedido.moneda.SIMBOLO" | 296 | currency: notaPedido.moneda.SIMBOLO" |
296 | > | 297 | > |
297 | </span> | 298 | </span> |
298 | </div> | 299 | </div> |
299 | </div> | 300 | </div> |
300 | </div> | 301 | </div> |
301 | <div class="align-middle p-1"> | 302 | <div class="align-middle p-1"> |
302 | <button | 303 | <button |
303 | class="btn btn-outline-light" | 304 | class="btn btn-outline-light" |
304 | ng-click="quitarArticulo(key)" | 305 | ng-click="quitarArticulo(key)" |
305 | > | 306 | > |
306 | <i class="fa fa-trash"></i> | 307 | <i class="fa fa-trash"></i> |
307 | </button> | 308 | </button> |
308 | </div> | 309 | </div> |
309 | </td> | 310 | </td> |
310 | </tr> | 311 | </tr> |
311 | </tbody> | 312 | </tbody> |
312 | <tfoot> | 313 | <tfoot> |
313 | <!-- CARGANDO ITEM --> | 314 | <!-- CARGANDO ITEM --> |
314 | <tr ng-show="!cargando" class="d-flex"> | 315 | <tr ng-show="!cargando" class="d-flex"> |
315 | <td | 316 | <td |
316 | class="align-middle p-1" | 317 | class="align-middle p-1" |
317 | ng-bind="notaPedido.articulosNotaPedido.length + 1" | 318 | ng-bind="notaPedido.articulosNotaPedido.length + 1" |
318 | ></td> | 319 | ></td> |
319 | <td class="col p-0"> | 320 | <td class="col p-0"> |
320 | <div class="d-flex"> | 321 | <div class="d-flex"> |
321 | <div class="col-4 px-1"> | 322 | <div class="col-4 px-1"> |
322 | <span | 323 | <span |
323 | ng-bind="articuloACargar.sectorCodigo" | 324 | ng-bind="articuloACargar.sectorCodigo" |
324 | ></span> | 325 | ></span> |
325 | </div> | 326 | </div> |
326 | <div class="col-8 px-1"> | 327 | <div class="col-8 px-1"> |
327 | <span ng-bind="articuloACargar.descripcion"></span> | 328 | <span ng-bind="articuloACargar.descripcion"></span> |
328 | </div> | 329 | </div> |
329 | </div> | 330 | </div> |
330 | <div class="d-flex"> | 331 | <div class="d-flex"> |
331 | <div class="col-3 px-1 m-1"> | 332 | <div class="col-3 px-1 m-1"> |
332 | <input | 333 | <input |
333 | class="form-control p-1" | 334 | class="form-control p-1" |
334 | foca-tipo-input | 335 | foca-tipo-input |
335 | min="1" | 336 | min="1" |
336 | ng-model="articuloACargar.cantidad" | 337 | ng-model="articuloACargar.cantidad" |
337 | foca-focus="!cargando" | 338 | foca-focus="!cargando" |
338 | ng-keypress="agregarATabla($event.keyCode)" | 339 | ng-keypress="agregarATabla($event.keyCode)" |
339 | style="height: auto; line-height: 1.1em" | 340 | style="height: auto; line-height: 1.1em" |
340 | > | 341 | > |
341 | </div> | 342 | </div> |
342 | <div class="col px-1 text-right"> | 343 | <div class="col px-1 text-right"> |
343 | <span ng-bind="articuloACargar.precio | | 344 | <span ng-bind="articuloACargar.precio | |
344 | currency: notaPedido.moneda.SIMBOLO : 4" | 345 | currency: notaPedido.moneda.SIMBOLO : 4" |
345 | ></span> | 346 | ></span> |
346 | </div> | 347 | </div> |
347 | <div class="col px-1 text-right"> | 348 | <div class="col px-1 text-right"> |
348 | <span | 349 | <span |
349 | ng-bind="getSubTotal() | | 350 | ng-bind="getSubTotal() | |
350 | currency: notaPedido.moneda.SIMBOLO" | 351 | currency: notaPedido.moneda.SIMBOLO" |
351 | > | 352 | > |
352 | </span> | 353 | </span> |
353 | </div> | 354 | </div> |
354 | </div> | 355 | </div> |
355 | </td> | 356 | </td> |
356 | <td class="text-center align-middle"> | 357 | <td class="text-center align-middle"> |
357 | <button | 358 | <button |
358 | class="btn btn-outline-light" | 359 | class="btn btn-outline-light" |
359 | ng-click="agregarATabla(13)" | 360 | ng-click="agregarATabla(13)" |
360 | > | 361 | > |
361 | <i class="fa fa-save"></i> | 362 | <i class="fa fa-save"></i> |
362 | </button> | 363 | </button> |
363 | </td> | 364 | </td> |
364 | </tr> | 365 | </tr> |
365 | <!-- TOOGLE EXPANDIR --> | 366 | <!-- TOOGLE EXPANDIR --> |
366 | <tr> | 367 | <tr> |
367 | <td class="col"> | 368 | <td class="col"> |
368 | <button | 369 | <button |
369 | class="btn btn-outline-light selectable w-100" | 370 | class="btn btn-outline-light selectable w-100" |
370 | ng-click="show = !show; masMenos()" | 371 | ng-click="show = !show; masMenos()" |
371 | ng-show="notaPedido.articulosNotaPedido.length > 0" | 372 | ng-show="notaPedido.articulosNotaPedido.length > 0" |
372 | > | 373 | > |
373 | <i | 374 | <i |
374 | class="fa fa-chevron-down" | 375 | class="fa fa-chevron-down" |
375 | ng-hide="show" | 376 | ng-hide="show" |
376 | aria-hidden="true" | 377 | aria-hidden="true" |
377 | > | 378 | > |
378 | </i> | 379 | </i> |
379 | <i | 380 | <i |
380 | class="fa fa-chevron-up" | 381 | class="fa fa-chevron-up" |
381 | ng-show="show" | 382 | ng-show="show" |
382 | aria-hidden="true"> | 383 | aria-hidden="true"> |
383 | </i> | 384 | </i> |
384 | </button> | 385 | </button> |
385 | </td> | 386 | </td> |
386 | </tr> | 387 | </tr> |
387 | <!-- FOOTER --> | 388 | <!-- FOOTER --> |
388 | <tr class="d-flex"> | 389 | <tr class="d-flex"> |
389 | <td class="align-middle no-border-top" colspan="2"> | 390 | <td class="align-middle no-border-top" colspan="2"> |
390 | <strong>Cantidad Items:</strong> | 391 | <strong>Cantidad Items:</strong> |
391 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> | 392 | <a ng-bind="notaPedido.articulosNotaPedido.length"></a> |
392 | </td> | 393 | </td> |
393 | <td class="text-right ml-auto table-celda-total no-border-top"> | 394 | <td class="text-right ml-auto table-celda-total no-border-top"> |
394 | <h3>Total:</h3> | 395 | <h3>Total:</h3> |
395 | </td> | 396 | </td> |
396 | <td class="table-celda-total text-right no-border-top"> | 397 | <td class="table-celda-total text-right no-border-top"> |
397 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> | 398 | <h3>{{getTotal() | currency: notaPedido.cotizacion.moneda.SIMBOLO}}</h3> |
398 | </td> | 399 | </td> |
399 | </tr> | 400 | </tr> |
400 | </tfoot> | 401 | </tfoot> |
401 | </table> | 402 | </table> |
402 | </div> | 403 | </div> |
403 | </div> | 404 | </div> |
404 | </div> | 405 | </div> |
405 | </div> | 406 | </div> |
406 | <div class="row d-md-none fixed-bottom"> | 407 | <div class="row d-md-none fixed-bottom"> |
407 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> | 408 | <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> |
408 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> | 409 | <span class="ml-3 text-muted" ng-click="salir()">Salir</span> |
409 | <span | 410 | <span |
410 | class="mr-3 ml-auto" | 411 | class="mr-3 ml-auto" |
411 | ng-class="saveLoading ? 'text-muted' : ''" | 412 | ng-class="saveLoading ? 'text-muted' : ''" |
412 | ng-click="crearNotaPedido()" | 413 | ng-click="crearNotaPedido()" |
413 | ladda="saveLoading" | 414 | ladda="saveLoading" |
414 | data-style="expand-left" | 415 | data-style="expand-left" |
415 | >Guardar</span> | 416 | >Guardar</span> |
416 | </div> | 417 | </div> |
417 | </div> | 418 | </div> |
418 | </div> | 419 | </div> |
419 | 420 |