Commit 3c16a268b4acf366b721a43437fa5d6d2535b24c

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Master(mpuebla)

See merge request !109
src/views/remito.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="'Remito'" 3 titulo="'Remito'"
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 ></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 ng-bind="remito.observaciones" 13 ng-bind="remito.observaciones"
14 ></marquee> 14 ></marquee>
15 <div class="col-lg-12"> 15 <div class="col-lg-12">
16 <div class="row mt-4"> 16 <div class="row mt-4">
17 <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">
18 <div class="row p-1 botonera-secundaria px-5 py-2"> 18 <div class="row p-1 botonera-secundaria px-5 py-2">
19 <div class="col-12"> 19 <div class="col-12">
20 <foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador> 20 <foca-botonera-facturador botones="botonera" extra="4" class="row"></foca-botonera-facturador>
21 </div> 21 </div>
22 </div> 22 </div>
23 <!-- PC --> 23 <!-- PC -->
24 <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">
25 <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">
26 <thead> 26 <thead>
27 <tr class="d-flex"> 27 <tr class="d-flex">
28 <th class="">#</th> 28 <th class="">#</th>
29 <th class="col">Código</th> 29 <th class="col">Código</th>
30 <th class="col-4">Descripción</th> 30 <th class="col-4">Descripción</th>
31 <th class="col text-right">Cantidad</th> 31 <th class="col text-right">Cantidad</th>
32 <th class="col text-right">Precio Unitario</th> 32 <th class="col text-right">Precio Unitario</th>
33 <th class="col text-right">SubTotal</th> 33 <th class="col text-right">SubTotal</th>
34 <th class="text-right"> 34 <th class="text-right">
35 <button 35 <button
36 class="btn btn-outline-light selectable" 36 class="btn btn-outline-light selectable"
37 ng-click="show = !show; masMenos()" 37 ng-click="show = !show; masMenos()"
38 > 38 >
39 <i 39 <i
40 class="fa fa-chevron-down" 40 class="fa fa-chevron-down"
41 ng-show="show" 41 ng-show="show"
42 aria-hidden="true" 42 aria-hidden="true"
43 > 43 >
44 </i> 44 </i>
45 <i 45 <i
46 class="fa fa-chevron-up" 46 class="fa fa-chevron-up"
47 ng-hide="show" 47 ng-hide="show"
48 aria-hidden="true"> 48 aria-hidden="true">
49 </i> 49 </i>
50 </button> 50 </button>
51 </th> 51 </th>
52 </tr> 52 </tr>
53 </thead> 53 </thead>
54 <tbody class="tabla-articulo-body"> 54 <tbody class="tabla-articulo-body">
55 <tr 55 <tr
56 ng-repeat="(key, articulo) in articulosFiltro()" 56 ng-repeat="(key, articulo) in articulosFiltro()"
57 ng-show="show || key == (articulosFiltro().length - 1)" 57 ng-show="show || key == (articulosFiltro().length - 1)"
58 class="d-flex" 58 class="d-flex"
59 > 59 >
60 <td ng-bind="key + 1"></td> 60 <td ng-bind="key + 1"></td>
61 <td 61 <td
62 class="col" 62 class="col"
63 ng-bind="articulo.sector + '-' + articulo.codigo" 63 ng-bind="articulo.sector + '-' + articulo.codigo"
64 ></td> 64 ></td>
65 <td 65 <td
66 class="col-4" 66 class="col-4"
67 ng-bind="articulo.nombre" 67 ng-bind="articulo.descripcion"
68 ></td> 68 ></td>
69 <td class="col text-right"> 69 <td class="col text-right">
70 <input 70 <input
71 ng-show="articulo.editCantidad" 71 ng-show="articulo.editCantidad"
72 ng-model="tmpCantidad" 72 ng-model="tmpCantidad"
73 class="form-control" 73 class="form-control"
74 foca-tipo-input 74 foca-tipo-input
75 min="1" 75 min="1"
76 foca-focus="articulo.editCantidad" 76 foca-focus="articulo.editCantidad"
77 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" 77 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);"
78 esc-key="cancelarEditar(articulo)" 78 esc-key="cancelarEditar(articulo)"
79 ng-focus="selectFocus($event); tmpCantidad = articulo.cantidad; tmpPrecio = articulo.precio" 79 ng-focus="selectFocus($event); tmpCantidad = articulo.cantidad; tmpPrecio = articulo.precio"
80 teclado-virtual 80 teclado-virtual
81 > 81 >
82 <i 82 <i
83 class="selectable" 83 class="selectable"
84 ng-click="cambioEdit(articulo, 'cantidad')" 84 ng-click="cambioEdit(articulo, 'cantidad')"
85 ng-hide="articulo.editCantidad" 85 ng-hide="articulo.editCantidad"
86 ng-bind="articulo.cantidad"> 86 ng-bind="articulo.cantidad">
87 </i> 87 </i>
88 </td> 88 </td>
89 <td class="col text-right"> 89 <td class="col text-right">
90 <input 90 <input
91 ng-show="articulo.editPrecio" 91 ng-show="articulo.editPrecio"
92 ng-model="tmpPrecio" 92 ng-model="tmpPrecio"
93 class="form-control" 93 class="form-control"
94 foca-tipo-input 94 foca-tipo-input
95 min="1" 95 min="1"
96 step="0.0001" 96 step="0.0001"
97 foca-focus="articulo.editPrecio" 97 foca-focus="articulo.editPrecio"
98 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);" 98 ng-keypress="editarArticulo($event.keyCode, articulo, tmpCantidad, tmpPrecio);"
99 esc-key="cancelarEditar(articulo)" 99 esc-key="cancelarEditar(articulo)"
100 ng-focus="selectFocus($event); 100 ng-focus="selectFocus($event);
101 tmpCantidad = articulo.cantidad; 101 tmpCantidad = articulo.cantidad;
102 tmpPrecio = articulo.precio" 102 tmpPrecio = articulo.precio"
103 teclado-virtual 103 teclado-virtual
104 > 104 >
105 <i 105 <i
106 class="selectable" 106 class="selectable"
107 ng-click="cambioEdit(articulo, 'precio')" 107 ng-click="cambioEdit(articulo, 'precio')"
108 ng-hide="articulo.editPrecio" 108 ng-hide="articulo.editPrecio"
109 ng-bind="articulo.precio | number: 4"> 109 ng-bind="articulo.precio | number: 4">
110 </i> 110 </i>
111 </td> 111 </td>
112 <td 112 <td
113 class="col text-right" 113 class="col text-right"
114 ng-bind="(articulo.precio * articulo.cantidad) | number: 2"> 114 ng-bind="(articulo.precio * articulo.cantidad) | number: 2">
115 </td> 115 </td>
116 <td class="text-center"> 116 <td class="text-center">
117 <button 117 <button
118 class="btn btn-outline-light" 118 class="btn btn-outline-light"
119 ng-click="quitarArticulo(articulo)" 119 ng-click="quitarArticulo(articulo)"
120 > 120 >
121 <i class="fa fa-trash"></i> 121 <i class="fa fa-trash"></i>
122 </button> 122 </button>
123 <button 123 <button
124 class="btn btn-outline-light" 124 class="btn btn-outline-light"
125 ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio);" 125 ng-click="editarArticulo(13, articulo, tmpCantidad, tmpPrecio);"
126 ng-show="articulo.editCantidad || articulo.editPrecio" 126 ng-show="articulo.editCantidad || articulo.editPrecio"
127 > 127 >
128 <i class="fa fa-save"></i> 128 <i class="fa fa-save"></i>
129 </button> 129 </button>
130 </td> 130 </td>
131 </tr> 131 </tr>
132 </tbody> 132 </tbody>
133 <tfoot> 133 <tfoot>
134 <tr ng-show="!cargando" class="d-flex"> 134 <tr ng-show="!cargando" class="d-flex">
135 <td 135 <td
136 class="align-middle" 136 class="align-middle"
137 ng-bind="articulosFiltro().length + 1" 137 ng-bind="articulosFiltro().length + 1"
138 ></td> 138 ></td>
139 <td class="col"> 139 <td class="col">
140 <input 140 <input
141 class="form-control" 141 class="form-control"
142 ng-model="articuloACargar.sectorCodigo" 142 ng-model="articuloACargar.sectorCodigo"
143 readonly 143 readonly
144 > 144 >
145 </td> 145 </td>
146 <td class="col-4 tabla-articulo-descripcion"> 146 <td class="col-4 tabla-articulo-descripcion">
147 <input 147 <input
148 class="form-control" 148 class="form-control"
149 ng-model="articuloACargar.nombre" 149 ng-model="articuloACargar.descripcion"
150 readonly 150 readonly
151 > 151 >
152 </td> 152 </td>
153 <td class="col text-right"> 153 <td class="col text-right">
154 <input 154 <input
155 class="form-control" 155 class="form-control"
156 foca-tipo-input 156 foca-tipo-input
157 min="1" 157 min="1"
158 ng-model="articuloACargar.cantidad" 158 ng-model="articuloACargar.cantidad"
159 foca-focus="!cargando" 159 foca-focus="!cargando"
160 esc-key="resetFilter()" 160 esc-key="resetFilter()"
161 ng-keypress="agregarATabla($event.keyCode)" 161 ng-keypress="agregarATabla($event.keyCode)"
162 teclado-virtual 162 teclado-virtual
163 > 163 >
164 </td> 164 </td>
165 <td class="col text-right"> 165 <td class="col text-right">
166 <input 166 <input
167 class="form-control" 167 class="form-control"
168 ng-model="articuloACargar.precio" 168 ng-model="articuloACargar.precio"
169 ng-show="idLista != -1" 169 ng-show="idLista != -1"
170 ng-keypress="agregarATabla($event.keyCode)" 170 ng-keypress="agregarATabla($event.keyCode)"
171 > 171 >
172 <input 172 <input
173 class="form-control" 173 class="form-control"
174 foca-tipo-input 174 foca-tipo-input
175 step="0.0001" 175 step="0.0001"
176 ng-model="articuloACargar.precio" 176 ng-model="articuloACargar.precio"
177 esc-key="resetFilter()" 177 esc-key="resetFilter()"
178 ng-keypress="agregarATabla($event.keyCode)" 178 ng-keypress="agregarATabla($event.keyCode)"
179 ng-show="idLista == -1" 179 ng-show="idLista == -1"
180 teclado-virtual 180 teclado-virtual
181 > 181 >
182 </td> 182 </td>
183 <td class="col text-right"> 183 <td class="col text-right">
184 <input 184 <input
185 class="form-control" 185 class="form-control"
186 ng-value="getSubTotal() | number: 2" 186 ng-value="getSubTotal() | number: 2"
187 readonly 187 readonly
188 ></td> 188 ></td>
189 <td class="text-center align-middle"> 189 <td class="text-center align-middle">
190 <button 190 <button
191 class="btn btn-outline-light" 191 class="btn btn-outline-light"
192 ng-click="agregarATabla(13)" 192 ng-click="agregarATabla(13)"
193 > 193 >
194 <i class="fa fa-save"></i> 194 <i class="fa fa-save"></i>
195 </button> 195 </button>
196 </td> 196 </td>
197 </tr> 197 </tr>
198 198
199 <tr class="d-flex"> 199 <tr class="d-flex">
200 <td colspan="4" class="no-border-top"> 200 <td colspan="4" class="no-border-top">
201 <strong>Items:</strong> 201 <strong>Items:</strong>
202 <a ng-bind="articulosFiltro().length"></a> 202 <a ng-bind="articulosFiltro().length"></a>
203 </td> 203 </td>
204 <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">
205 <h3>Total:</h3> 205 <h3>Total:</h3>
206 </td> 206 </td>
207 <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">
208 <h3>{{getTotal() | currency: remito.cotizacion.moneda.SIMBOLO}}</h3> 208 <h3>{{getTotal() | currency: remito.cotizacion.moneda.SIMBOLO}}</h3>
209 </td> 209 </td>
210 <td class="text-right no-border-top"> 210 <td class="text-right no-border-top">
211 <button 211 <button
212 type="button" 212 type="button"
213 class="btn btn-sm" 213 class="btn btn-sm"
214 > 214 >
215 Totales 215 Totales
216 </button> 216 </button>
217 </td> 217 </td>
218 </tr> 218 </tr>
219 </tfoot> 219 </tfoot>
220 </table> 220 </table>
221 </div> 221 </div>
222 </div> 222 </div>
223 </div> 223 </div>
224 </div> 224 </div>
225 <div class="row d-md-none fixed-bottom"> 225 <div class="row d-md-none fixed-bottom">
226 <div class="w-100 bg-dark d-flex px-3 acciones-mobile"> 226 <div class="w-100 bg-dark d-flex px-3 acciones-mobile">
227 <span class="ml-3 text-muted" ng-click="salir()">Salir</span> 227 <span class="ml-3 text-muted" ng-click="salir()">Salir</span>
228 <span 228 <span
229 class="mr-3 ml-auto" 229 class="mr-3 ml-auto"
230 ng-class="saveLoading ? 'text-muted' : ''" 230 ng-class="saveLoading ? 'text-muted' : ''"
231 ng-click="crearRemito()" 231 ng-click="crearRemito()"
232 ladda="saveLoading" 232 ladda="saveLoading"
233 data-style="expand-left" 233 data-style="expand-left"
234 >Guardar</span> 234 >Guardar</span>
235 </div> 235 </div>
236 </div> 236 </div>
237 </div> 237 </div>
238 238