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