Commit 755bfe25ea20d715cb9da6fce2cdc852831ae289

Authored by Eric Fernandez
1 parent 2b0225669d
Exists in master and in 1 other branch develop

fecha disabled

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/views/factura.html
1 <div class="crear-nota-remito foca-crear row"> 1 <div class="crear-nota-remito foca-crear row">
2 <foca-cabecera-facturador 2 <foca-cabecera-facturador
3 titulo="'Factura'" 3 titulo="'Factura'"
4 numero="puntoVenta + '-' + comprobante" 4 numero="puntoVenta + '-' + comprobante"
5 fecha="now" 5 fecha="now"
6 class="mb-0 col-lg-12" 6 class="mb-0 col-lg-12"
7 busqueda="seleccionarRemito" 7 busqueda="seleccionarRemito"
8 fecha-disabled="true"
8 ></foca-cabecera-facturador> 9 ></foca-cabecera-facturador>
9 <marquee 10 <marquee
10 bgcolor="#FF9900" 11 bgcolor="#FF9900"
11 behavior="scroll" 12 behavior="scroll"
12 direction="left" 13 direction="left"
13 ng-bind="factura.observaciones" 14 ng-bind="factura.observaciones"
14 ></marquee> 15 ></marquee>
15 <div class="col-12 col-lg-10 p-2"> 16 <div class="col-12 col-lg-10 p-2">
16 <div class="row border border-light rounded m-0"> 17 <div class="row border border-light rounded m-0">
17 <div class="col-12 col-sm-12"> 18 <div class="col-12 col-sm-12">
18 <div class="row p-1 botonera-secundaria px-3 py-2"> 19 <div class="row p-1 botonera-secundaria px-3 py-2">
19 <div class="col-12"> 20 <div class="col-12">
20 <foca-botonera-facturador 21 <foca-botonera-facturador
21 botones="botonera" 22 botones="botonera"
22 max="botonera.length" 23 max="botonera.length"
23 class="row"> 24 class="row">
24 </foca-botonera-facturador> 25 </foca-botonera-facturador>
25 </div> 26 </div>
26 </div> 27 </div>
27 <div ng-show="botoneraProductos.length > 0" class="row botonera-secundaria pb-3 px-3"> 28 <div ng-show="botoneraProductos.length > 0" class="row botonera-secundaria pb-3 px-3">
28 <div class="col-12"> 29 <div class="col-12">
29 <foca-botonera-productos 30 <foca-botonera-productos
30 botones="botoneraProductos" 31 botones="botoneraProductos"
31 max="1" 32 max="1"
32 class="row" 33 class="row"
33 > 34 >
34 </foca-botonera-productos> 35 </foca-botonera-productos>
35 </div> 36 </div>
36 </div> 37 </div>
37 <!-- PC --> 38 <!-- PC -->
38 <div class="row grilla-articulo align-items-end d-none d-sm-flex"> 39 <div class="row grilla-articulo align-items-end d-none d-sm-flex">
39 <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom"> 40 <table class="table tabla-articulo table-striped table-sm mb-0 rounded-bottom">
40 <thead> 41 <thead>
41 <tr class="d-flex"> 42 <tr class="d-flex">
42 <th class="">#</th> 43 <th class="">#</th>
43 <th class="col">Código</th> 44 <th class="col">Código</th>
44 <th class="col-4">Descripción</th> 45 <th class="col-4">Descripción</th>
45 <th class="col text-right">Cantidad</th> 46 <th class="col text-right">Cantidad</th>
46 <th class="col text-right">Precio Unitario</th> 47 <th class="col text-right">Precio Unitario</th>
47 <th class="col text-right">SubTotal</th> 48 <th class="col text-right">SubTotal</th>
48 <th class="text-right"> 49 <th class="text-right">
49 <button 50 <button
50 class="btn btn-outline-light selectable" 51 class="btn btn-outline-light selectable"
51 ng-click="show = !show; masMenos()" 52 ng-click="show = !show; masMenos()"
52 > 53 >
53 <i 54 <i
54 class="fa fa-chevron-down" 55 class="fa fa-chevron-down"
55 ng-show="show" 56 ng-show="show"
56 aria-hidden="true" 57 aria-hidden="true"
57 > 58 >
58 </i> 59 </i>
59 <i 60 <i
60 class="fa fa-chevron-up" 61 class="fa fa-chevron-up"
61 ng-hide="show" 62 ng-hide="show"
62 aria-hidden="true"> 63 aria-hidden="true">
63 </i> 64 </i>
64 </button> 65 </button>
65 </th> 66 </th>
66 </tr> 67 </tr>
67 </thead> 68 </thead>
68 <tbody class="tabla-articulo-body"> 69 <tbody class="tabla-articulo-body">
69 <tr 70 <tr
70 ng-repeat="(key, articulo) in articulosFiltro()" 71 ng-repeat="(key, articulo) in articulosFiltro()"
71 ng-show="show || key == (articulosFiltro().length - 1)" 72 ng-show="show || key == (articulosFiltro().length - 1)"
72 class="d-flex" 73 class="d-flex"
73 > 74 >
74 <td ng-bind="key + 1"></td> 75 <td ng-bind="key + 1"></td>
75 <td 76 <td
76 class="col" 77 class="col"
77 ng-bind="articulo.SEC + '-' + articulo.ART" 78 ng-bind="articulo.SEC + '-' + articulo.ART"
78 ></td> 79 ></td>
79 <td 80 <td
80 class="col-4" 81 class="col-4"
81 ng-bind="articulo.DES" 82 ng-bind="articulo.DES"
82 ></td> 83 ></td>
83 <td class="col text-right"> 84 <td class="col text-right">
84 <input 85 <input
85 ng-show="articulo.editCantidad" 86 ng-show="articulo.editCantidad"
86 ng-model="tmpCantidad" 87 ng-model="tmpCantidad"
87 class="form-control" 88 class="form-control"
88 foca-tipo-input 89 foca-tipo-input
89 min="1" 90 min="1"
90 foca-focus="articulo.editCantidad" 91 foca-focus="articulo.editCantidad"
91 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad);" 92 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad);"
92 esc-key="cancelarEditar(articulo)" 93 esc-key="cancelarEditar(articulo)"
93 ng-focus="selectFocus($event); tmpCantidad = articulo.CAN;" 94 ng-focus="selectFocus($event); tmpCantidad = articulo.CAN;"
94 teclado-virtual 95 teclado-virtual
95 > 96 >
96 <i 97 <i
97 class="selectable" 98 class="selectable"
98 ng-click="cambioEdit(articulo, 'cantidad')" 99 ng-click="cambioEdit(articulo, 'cantidad')"
99 ng-hide="articulo.editCantidad" 100 ng-hide="articulo.editCantidad"
100 ng-bind="articulo.CAN"> 101 ng-bind="articulo.CAN">
101 </i> 102 </i>
102 </td> 103 </td>
103 <td class="col text-right"> 104 <td class="col text-right">
104 <i 105 <i
105 class="selectable" 106 class="selectable"
106 ng-bind="articulo.PUN | number: 4"> 107 ng-bind="articulo.PUN | 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.PUN * articulo.CAN) | number: 2"> 112 ng-bind="(articulo.PUN * articulo.CAN) | number: 2">
112 </td> 113 </td>
113 <td class="text-center"> 114 <td class="text-center">
114 <button 115 <button
115 class="btn btn-outline-light" 116 class="btn btn-outline-light"
116 ng-click="quitarDespacho(articulo, key)" 117 ng-click="quitarDespacho(articulo, key)"
117 > 118 >
118 <i class="fa fa-trash"></i> 119 <i class="fa fa-trash"></i>
119 </button> 120 </button>
120 <button 121 <button
121 class="btn btn-outline-light" 122 class="btn btn-outline-light"
122 ng-click="editarArticulo(13, articulo, tmpCantidad);" 123 ng-click="editarArticulo(13, articulo, tmpCantidad);"
123 ng-show="articulo.editCantidad || articulo.editPrecio" 124 ng-show="articulo.editCantidad || articulo.editPrecio"
124 > 125 >
125 <i class="fa fa-save"></i> 126 <i class="fa fa-save"></i>
126 </button> 127 </button>
127 </td> 128 </td>
128 </tr> 129 </tr>
129 </tbody> 130 </tbody>
130 <tfoot> 131 <tfoot>
131 <tr class="d-flex"> 132 <tr class="d-flex">
132 <td colspan="4" class="no-border-top"> 133 <td colspan="4" class="no-border-top">
133 <strong>Items:</strong> 134 <strong>Items:</strong>
134 <a ng-bind="articulosFiltro().length"></a> 135 <a ng-bind="articulosFiltro().length"></a>
135 </td> 136 </td>
136 <td class="text-right ml-auto table-celda-total no-border-top"> 137 <td class="text-right ml-auto table-celda-total no-border-top">
137 <h3>Total:</h3> 138 <h3>Total:</h3>
138 </td> 139 </td>
139 <td class="table-celda-total text-right no-border-top" colspan="1"> 140 <td class="table-celda-total text-right no-border-top" colspan="1">
140 <h3>{{getTotal() | currency: factura.cotizacion.moneda.SIMBOLO}}</h3> 141 <h3>{{getTotal() | currency: factura.cotizacion.moneda.SIMBOLO}}</h3>
141 </td> 142 </td>
142 <td class="text-right no-border-top"> 143 <td class="text-right no-border-top">
143 <button 144 <button
144 type="button" 145 type="button"
145 class="btn btn-sm" 146 class="btn btn-sm"
146 > 147 >
147 Totales 148 Totales
148 </button> 149 </button>
149 </td> 150 </td>
150 </tr> 151 </tr>
151 </tfoot> 152 </tfoot>
152 </table> 153 </table>
153 </div> 154 </div>
154 <!-- MOBILE --> 155 <!-- MOBILE -->
155 <div class="row d-sm-none"> 156 <div class="row d-sm-none">
156 <div class="col p-0 m-2 mb-5"> 157 <div class="col p-0 m-2 mb-5">
157 <table class="table table-sm table-striped tabla-articulo"> 158 <table class="table table-sm table-striped tabla-articulo">
158 <thead> 159 <thead>
159 <tr class="d-flex"> 160 <tr class="d-flex">
160 <th class="">#</th> 161 <th class="">#</th>
161 <th class="col px-0"> 162 <th class="col px-0">
162 <div class="d-flex"> 163 <div class="d-flex">
163 <div class="col-4 px-1">Código</div> 164 <div class="col-4 px-1">Código</div>
164 <div class="col-8 px-1">Descripción</div> 165 <div class="col-8 px-1">Descripción</div>
165 </div> 166 </div>
166 <div class="d-flex"> 167 <div class="d-flex">
167 <div class="col-3 px-1">Cantidad</div> 168 <div class="col-3 px-1">Cantidad</div>
168 <div class="col px-1 text-right">P. Uni.</div> 169 <div class="col px-1 text-right">P. Uni.</div>
169 <div class="col px-1 text-right">Subtotal</div> 170 <div class="col px-1 text-right">Subtotal</div>
170 </div> 171 </div>
171 </th> 172 </th>
172 <th class="text-center tamaño-boton"> 173 <th class="text-center tamaño-boton">
173 &nbsp; 174 &nbsp;
174 </th> 175 </th>
175 </tr> 176 </tr>
176 </thead> 177 </thead>
177 <tbody> 178 <tbody>
178 <tr 179 <tr
179 ng-repeat="(key, articulo) in articulosFiltro()" 180 ng-repeat="(key, articulo) in articulosFiltro()"
180 ng-show="show || key == articulosFiltro().length - 1" 181 ng-show="show || key == articulosFiltro().length - 1"
181 > 182 >
182 <td class="w-100 d-flex p-0"> 183 <td class="w-100 d-flex p-0">
183 <div class="p-1 m-auto"> 184 <div class="p-1 m-auto">
184 <span ng-bind="key + 1"></span> 185 <span ng-bind="key + 1"></span>
185 </div> 186 </div>
186 <div class="col px-0"> 187 <div class="col px-0">
187 <div class="d-flex"> 188 <div class="d-flex">
188 <div class="col-4 px-1"> 189 <div class="col-4 px-1">
189 <span 190 <span
190 ng-bind="articulo.SEC + '-' + articulo.ART" 191 ng-bind="articulo.SEC + '-' + articulo.ART"
191 ></span> 192 ></span>
192 </div> 193 </div>
193 <div class="col-8 px-1"> 194 <div class="col-8 px-1">
194 <span ng-bind="articulo.DES"></span> 195 <span ng-bind="articulo.DES"></span>
195 </div> 196 </div>
196 </div> 197 </div>
197 <div class="d-flex"> 198 <div class="d-flex">
198 <div class="col-4 px-1"> 199 <div class="col-4 px-1">
199 <span 200 <span
200 ng-bind="'x' + articulo.CAN" 201 ng-bind="'x' + articulo.CAN"
201 ng-hide="articulo.editCantidad" 202 ng-hide="articulo.editCantidad"
202 ></span> 203 ></span>
203 <i 204 <i
204 class="fa fa-pencil text-white-50" 205 class="fa fa-pencil text-white-50"
205 aria-hidden="true" 206 aria-hidden="true"
206 ng-hide="articulo.editCantidad" 207 ng-hide="articulo.editCantidad"
207 ng-click="articulo.editCantidad = true" 208 ng-click="articulo.editCantidad = true"
208 ></i> 209 ></i>
209 <input 210 <input
210 ng-show="articulo.editCantidad" 211 ng-show="articulo.editCantidad"
211 ng-model="tmpCantidad" 212 ng-model="tmpCantidad"
212 class="form-control" 213 class="form-control"
213 foca-tipo-input 214 foca-tipo-input
214 min="1" 215 min="1"
215 step="0.001" 216 step="0.001"
216 foca-focus="articulo.editCantidad" 217 foca-focus="articulo.editCantidad"
217 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad)" 218 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad)"
218 ng-focus="selectFocus($event)" 219 ng-focus="selectFocus($event)"
219 > 220 >
220 </div> 221 </div>
221 <div class="col px-1 text-right"> 222 <div class="col px-1 text-right">
222 <span ng-bind="articulo.PUN | 223 <span ng-bind="articulo.PUN |
223 currency: factura.cotizacion.moneda.SIMBOLO : 4"></span> 224 currency: factura.cotizacion.moneda.SIMBOLO : 4"></span>
224 ></span> 225 ></span>
225 </div> 226 </div>
226 <div class="col px-1 text-right"> 227 <div class="col px-1 text-right">
227 <span 228 <span
228 ng-bind="(articulo.PUN * articulo.CAN) | 229 ng-bind="(articulo.PUN * articulo.CAN) |
229 currency: factura.cotizacion.moneda.SIMBOLO" 230 currency: factura.cotizacion.moneda.SIMBOLO"
230 > 231 >
231 </span> 232 </span>
232 </div> 233 </div>
233 </div> 234 </div>
234 </div> 235 </div>
235 <div class="m-auto p-1"> 236 <div class="m-auto p-1">
236 <button 237 <button
237 class="btn btn-outline-light" 238 class="btn btn-outline-light"
238 ng-click="quitarDespacho(articulo, key)" 239 ng-click="quitarDespacho(articulo, key)"
239 > 240 >
240 <i class="fa fa-trash"></i> 241 <i class="fa fa-trash"></i>
241 </button> 242 </button>
242 </div> 243 </div>
243 </td> 244 </td>
244 </tr> 245 </tr>
245 </tbody> 246 </tbody>
246 <tfoot> 247 <tfoot>
247 <!-- TOOGLE EXPANDIR --> 248 <!-- TOOGLE EXPANDIR -->
248 <tr> 249 <tr>
249 <td class="col"> 250 <td class="col">
250 <button 251 <button
251 class="btn btn-outline-light selectable w-100" 252 class="btn btn-outline-light selectable w-100"
252 ng-click="show = !show; masMenos()" 253 ng-click="show = !show; masMenos()"
253 ng-show="articulosFiltro().length > 0" 254 ng-show="articulosFiltro().length > 0"
254 > 255 >
255 <i 256 <i
256 class="fa fa-chevron-down" 257 class="fa fa-chevron-down"
257 ng-hide="show" 258 ng-hide="show"
258 aria-hidden="true" 259 aria-hidden="true"
259 > 260 >
260 </i> 261 </i>
261 <i 262 <i
262 class="fa fa-chevron-up" 263 class="fa fa-chevron-up"
263 ng-show="show" 264 ng-show="show"
264 aria-hidden="true"> 265 aria-hidden="true">
265 </i> 266 </i>
266 </button> 267 </button>
267 </td> 268 </td>
268 </tr> 269 </tr>
269 <!-- FOOTER --> 270 <!-- FOOTER -->
270 <tr class="d-flex"> 271 <tr class="d-flex">
271 <td class="m-auto no-border-top" colspan="2"> 272 <td class="m-auto no-border-top" colspan="2">
272 <strong>Cantidad Items:</strong> 273 <strong>Cantidad Items:</strong>
273 <a ng-bind="articulosFiltro().length"></a> 274 <a ng-bind="articulosFiltro().length"></a>
274 </td> 275 </td>
275 <td class="text-right ml-auto table-celda-total no-border-top"> 276 <td class="text-right ml-auto table-celda-total no-border-top">
276 <h3>Total:</h3> 277 <h3>Total:</h3>
277 </td> 278 </td>
278 <td class="table-celda-total text-right no-border-top"> 279 <td class="table-celda-total text-right no-border-top">
279 <h3>{{getTotal() | currency: factura.cotizacion.moneda.SIMBOLO}}</h3> 280 <h3>{{getTotal() | currency: factura.cotizacion.moneda.SIMBOLO}}</h3>
280 </td> 281 </td>
281 </tr> 282 </tr>
282 </tfoot> 283 </tfoot>
283 </table> 284 </table>
284 </div> 285 </div>
285 </div> 286 </div>
286 </div> 287 </div>
287 </div> 288 </div>
288 </div> 289 </div>
289 <div class="row d-md-none fixed-bottom disable-selection"> 290 <div class="row d-md-none fixed-bottom disable-selection">
290 <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> 291 <div class="w-100 bg-dark d-flex px-3 acciones-mobile">
291 <span class="ml-3 text-muted" ng-click="salir()">Salir</span> 292 <span class="ml-3 text-muted" ng-click="salir()">Salir</span>
292 <span 293 <span
293 class="mr-3 ml-auto" 294 class="mr-3 ml-auto"
294 ng-class="saveLoading ? 'text-muted' : ''" 295 ng-class="saveLoading ? 'text-muted' : ''"
295 ng-click="seleccionarFormaDePago()" 296 ng-click="seleccionarFormaDePago()"
296 ladda="saveLoading" 297 ladda="saveLoading"
297 data-style="expand-left" 298 data-style="expand-left"
298 >Pago</span> 299 >Pago</span>
299 </div> 300 </div>
300 </div> 301 </div>
301 </div> 302 </div>
302 303