Commit 2ddcf3a3786b56c4bf52989bce2959a38a3736e7
1 parent
c537c3cbac
Exists in
master
codigos con id
Showing
2 changed files
with
4 additions
and
2 deletions
 
Show diff stats
src/views/foca-abm-precios-condiciones-item.html
| 1 | <div class="row"> | 1 | <div class="row"> | 
| 2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador | 
| 3 | titulo="'Precios y condiciones'" | 3 | titulo="'Precios y condiciones'" | 
| 4 | fecha="now" | 4 | fecha="now" | 
| 5 | class="mb-0 col-lg-12" | 5 | class="mb-0 col-lg-12" | 
| 6 | ></foca-cabecera-facturador> | 6 | ></foca-cabecera-facturador> | 
| 7 | </div> | 7 | </div> | 
| 8 | <div class="row"> | 8 | <div class="row"> | 
| 9 | <form class="col-md-10"> | 9 | <form class="col-md-10"> | 
| 10 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> | 10 | <input type="hidden" name="id" ng-model="precioCondicion.id" /> | 
| 11 | <div class="row mb-3"> | 11 | <div class="row mb-3"> | 
| 12 | <label class="col-sm-2 col-form-label">Código</label> | 12 | <label class="col-sm-2 col-form-label">Código</label> | 
| 13 | <input | 13 | <input | 
| 14 | class="form-control col-sm-4" | 14 | class="form-control col-sm-4" | 
| 15 | type="text" | 15 | type="text" | 
| 16 | name="codigo" | 16 | name="codigo" | 
| 17 | ng-model="precioCondicion.codigo" | 17 | value="{{precioCondicion.id | rellenarDigitos: 4: 0}}" | 
| 18 | autocomplete="off" | 18 | autocomplete="off" | 
| 19 | teclado-virtual | 19 | readonly | 
| 20 | /> | 20 | /> | 
| 21 | <label class="col-sm-2 col-form-label">Nombre</label> | 21 | <label class="col-sm-2 col-form-label">Nombre</label> | 
| 22 | <input | 22 | <input | 
| 23 | class="form-control col-sm-4" | 23 | class="form-control col-sm-4" | 
| 24 | type="text" | 24 | type="text" | 
| 25 | name="nombre" | 25 | name="nombre" | 
| 26 | ng-model="precioCondicion.nombre" | 26 | ng-model="precioCondicion.nombre" | 
| 27 | autocomplete="off" | 27 | autocomplete="off" | 
| 28 | teclado-virtual | 28 | teclado-virtual | 
| 29 | /> | 29 | /> | 
| 30 | </div> | 30 | </div> | 
| 31 | <div class="form-group row"> | 31 | <div class="form-group row"> | 
| 32 | <label class="col-sm-2 col-form-label">Descripción</label> | 32 | <label class="col-sm-2 col-form-label">Descripción</label> | 
| 33 | <input | 33 | <input | 
| 34 | class="form-control col-sm-10" | 34 | class="form-control col-sm-10" | 
| 35 | type="text" | 35 | type="text" | 
| 36 | name="nombre" | 36 | name="nombre" | 
| 37 | ng-model="precioCondicion.descripcion" | 37 | ng-model="precioCondicion.descripcion" | 
| 38 | autocomplete="off" | 38 | autocomplete="off" | 
| 39 | teclado-virtual | 39 | teclado-virtual | 
| 40 | /> | 40 | /> | 
| 41 | </div> | 41 | </div> | 
| 42 | <div class="row"> | 42 | <div class="row"> | 
| 43 | <label class="col-sm-2 col-form-label">Lista de precios</label> | 43 | <label class="col-sm-2 col-form-label">Lista de precios</label> | 
| 44 | <div class="col-sm-4 input-group p-0"> | 44 | <div class="col-sm-4 input-group p-0"> | 
| 45 | <input | 45 | <input | 
| 46 | ng-model="listaPrecioLabel" | 46 | ng-model="listaPrecioLabel" | 
| 47 | class="form-control" | 47 | class="form-control" | 
| 48 | readonly | 48 | readonly | 
| 49 | /> | 49 | /> | 
| 50 | <div class="input-group-append"> | 50 | <div class="input-group-append"> | 
| 51 | <button | 51 | <button | 
| 52 | ladda="searchLoading" | 52 | ladda="searchLoading" | 
| 53 | class="btn btn-outline-secondary form-control" | 53 | class="btn btn-outline-secondary form-control" | 
| 54 | title="Buscar" | 54 | title="Buscar" | 
| 55 | type="button" | 55 | type="button" | 
| 56 | ng-click="seleccionarListaPrecio()" | 56 | ng-click="seleccionarListaPrecio()" | 
| 57 | foca-focus="focused == 3" | 57 | foca-focus="focused == 3" | 
| 58 | > | 58 | > | 
| 59 | <i class="fa fa-search" aria-hidden="true"></i> | 59 | <i class="fa fa-search" aria-hidden="true"></i> | 
| 60 | </button> | 60 | </button> | 
| 61 | </div> | 61 | </div> | 
| 62 | </div> | 62 | </div> | 
| 63 | <label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label> | 63 | <label class="col-sm-2 col-form-label" ng-show="mostrarPlazos">Plazos</label> | 
| 64 | <div class="col-sm-4 p-0" ng-show="mostrarPlazos"> | 64 | <div class="col-sm-4 p-0" ng-show="mostrarPlazos"> | 
| 65 | <div class="input-group p-0"> | 65 | <div class="input-group p-0"> | 
| 66 | <input | 66 | <input | 
| 67 | type="number" | 67 | type="number" | 
| 68 | class="form-control text-right" | 68 | class="form-control text-right" | 
| 69 | min="0" | 69 | min="0" | 
| 70 | ng-model="plazoACargar.dias" | 70 | ng-model="plazoACargar.dias" | 
| 71 | ng-keypress="agregarPlazo($event.keyCode)" | 71 | ng-keypress="agregarPlazo($event.keyCode)" | 
| 72 | foca-focus="ingreso" | 72 | foca-focus="ingreso" | 
| 73 | placeholder="Días" | 73 | placeholder="Días" | 
| 74 | /> | 74 | /> | 
| 75 | <div class="input-group-append"> | 75 | <div class="input-group-append"> | 
| 76 | <button | 76 | <button | 
| 77 | class="btn btn-outline-secondary form-control" | 77 | class="btn btn-outline-secondary form-control" | 
| 78 | title="Agregar" | 78 | title="Agregar" | 
| 79 | type="button" | 79 | type="button" | 
| 80 | ng-click="agregarPlazo(13)" | 80 | ng-click="agregarPlazo(13)" | 
| 81 | foca-focus="focused == 3" | 81 | foca-focus="focused == 3" | 
| 82 | > | 82 | > | 
| 83 | <i class="fa fa-save" aria-hidden="true"></i> | 83 | <i class="fa fa-save" aria-hidden="true"></i> | 
| 84 | </button> | 84 | </button> | 
| 85 | </div> | 85 | </div> | 
| 86 | </div> | 86 | </div> | 
| 87 | <table class="table table-striped table-sm"> | 87 | <table class="table table-striped table-sm"> | 
| 88 | <tbody> | 88 | <tbody> | 
| 89 | <tr ng-repeat="(key, plazo) in precioCondicion.plazos"> | 89 | <tr ng-repeat="(key, plazo) in precioCondicion.plazos"> | 
| 90 | <td class="text-right" > | 90 | <td class="text-right" > | 
| 91 | <span ng-bind="plazo.dias + ' días'"></span> | 91 | <span ng-bind="plazo.dias + ' días'"></span> | 
| 92 | <button | 92 | <button | 
| 93 | type="button" | 93 | type="button" | 
| 94 | title="Eliminar" | 94 | title="Eliminar" | 
| 95 | class="btn btn-outline-secondary ml-1" | 95 | class="btn btn-outline-secondary ml-1" | 
| 96 | ng-click="quitarPlazo(key)" | 96 | ng-click="quitarPlazo(key)" | 
| 97 | > | 97 | > | 
| 98 | <i class="fa fa-trash"></i> | 98 | <i class="fa fa-trash"></i> | 
| 99 | </button> | 99 | </button> | 
| 100 | </td> | 100 | </td> | 
| 101 | </tr> | 101 | </tr> | 
| 102 | </tbody> | 102 | </tbody> | 
| 103 | </table> | 103 | </table> | 
| 104 | </div> | 104 | </div> | 
| 105 | </div> | 105 | </div> | 
| 106 | </form> | 106 | </form> | 
| 107 | </div> | 107 | </div> | 
| 108 | 108 | 
src/views/foca-abm-precios-condiciones-listado.html
| 1 | <div class="row"> | 1 | <div class="row"> | 
| 2 | <foca-cabecera-facturador | 2 | <foca-cabecera-facturador | 
| 3 | titulo="'Precios y condiciones'" | 3 | titulo="'Precios y condiciones'" | 
| 4 | fecha="now" | 4 | fecha="now" | 
| 5 | class="mb-0 col-lg-12" | 5 | class="mb-0 col-lg-12" | 
| 6 | ></foca-cabecera-facturador> | 6 | ></foca-cabecera-facturador> | 
| 7 | </div> | 7 | </div> | 
| 8 | <div class="row"> | 8 | <div class="row"> | 
| 9 | <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded"> | 9 | <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded"> | 
| 10 | <div class="form-group input-group mt-3 px-5"> | 10 | <div class="form-group input-group mt-3 px-5"> | 
| 11 | <input | 11 | <input | 
| 12 | type="text" | 12 | type="text" | 
| 13 | class="form-control form-control-sm" | 13 | class="form-control form-control-sm" | 
| 14 | id="search" | 14 | id="search" | 
| 15 | placeholder="Búsqueda" | 15 | placeholder="Búsqueda" | 
| 16 | teclado-virtual | 16 | teclado-virtual | 
| 17 | ng-keypress="busquedaPress($event.keyCode)" | 17 | ng-keypress="busquedaPress($event.keyCode)" | 
| 18 | ng-model="filters" | 18 | ng-model="filters" | 
| 19 | /> | 19 | /> | 
| 20 | <div class="input-group-append"> | 20 | <div class="input-group-append"> | 
| 21 | <button | 21 | <button | 
| 22 | ladda="searchLoading" | 22 | ladda="searchLoading" | 
| 23 | class="btn btn-outline-secondary" | 23 | class="btn btn-outline-secondary" | 
| 24 | type="button" | 24 | type="button" | 
| 25 | ng-click="busquedaPress(13)" | 25 | ng-click="busquedaPress(13)" | 
| 26 | > | 26 | > | 
| 27 | <i class="fa fa-search" aria-hidden="true"></i> | 27 | <i class="fa fa-search" aria-hidden="true"></i> | 
| 28 | </button> | 28 | </button> | 
| 29 | </div> | 29 | </div> | 
| 30 | </div> | 30 | </div> | 
| 31 | <table class="table table-default table-hover table-sm table-abm table-striped mb-0"> | 31 | <table class="table table-default table-hover table-sm table-abm table-striped mb-0"> | 
| 32 | <thead> | 32 | <thead> | 
| 33 | <tr> | 33 | <tr> | 
| 34 | <th>Código</th> | ||
| 34 | <th>Nombre</th> | 35 | <th>Nombre</th> | 
| 35 | <th>Lista de precio</th> | 36 | <th>Lista de precio</th> | 
| 36 | <th>Plazos</th> | 37 | <th>Plazos</th> | 
| 37 | <th colspan="2" class="text-center"> | 38 | <th colspan="2" class="text-center"> | 
| 38 | <button | 39 | <button | 
| 39 | title="Agregar" | 40 | title="Agregar" | 
| 40 | class="btn btn-outline-debo boton-accion" | 41 | class="btn btn-outline-debo boton-accion" | 
| 41 | ng-click="editar(0)"> | 42 | ng-click="editar(0)"> | 
| 42 | <i class="fa fa-plus"></i> | 43 | <i class="fa fa-plus"></i> | 
| 43 | </button> | 44 | </button> | 
| 44 | </th> | 45 | </th> | 
| 45 | </tr> | 46 | </tr> | 
| 46 | </thead> | 47 | </thead> | 
| 47 | <tbody> | 48 | <tbody> | 
| 48 | <tr ng-repeat="precioCondicion in preciosCondiciones | filter: filters"> | 49 | <tr ng-repeat="precioCondicion in preciosCondiciones | filter: filters"> | 
| 50 | <td ng-bind="precioCondicion.id | rellenarDigitos: 4: 0"></td> | ||
| 49 | <td ng-bind="precioCondicion.nombre"></td> | 51 | <td ng-bind="precioCondicion.nombre"></td> | 
| 50 | <td ng-bind="precioCondicion.listaPrecio.ID + ' - ' + precioCondicion.listaPrecio.DES + ' - ' + precioCondicion.listaPrecio.moneda.DETALLE"></td> | 52 | <td ng-bind="precioCondicion.listaPrecio.ID + ' - ' + precioCondicion.listaPrecio.DES + ' - ' + precioCondicion.listaPrecio.moneda.DETALLE"></td> | 
| 51 | <td><span | 53 | <td><span | 
| 52 | ng-repeat="plazo in precioCondicion.plazoPago" | 54 | ng-repeat="plazo in precioCondicion.plazoPago" | 
| 53 | ng-if="plazo.activo" | 55 | ng-if="plazo.activo" | 
| 54 | ng-bind="$last ? plazo.dias : plazo.dias + ', '"></span></td> | 56 | ng-bind="$last ? plazo.dias : plazo.dias + ', '"></span></td> | 
| 55 | <td class="text-center"> | 57 | <td class="text-center"> | 
| 56 | <button | 58 | <button | 
| 57 | title="Editar" | 59 | title="Editar" | 
| 58 | class="btn btn-outline-dark boton-accion" | 60 | class="btn btn-outline-dark boton-accion" | 
| 59 | ng-click="editar(precioCondicion.id)"> | 61 | ng-click="editar(precioCondicion.id)"> | 
| 60 | <i class="fa fa-pencil"></i> | 62 | <i class="fa fa-pencil"></i> | 
| 61 | </button> | 63 | </button> | 
| 62 | <button | 64 | <button | 
| 63 | title="Eliminar" | 65 | title="Eliminar" | 
| 64 | class="btn btn-outline-dark boton-accion" | 66 | class="btn btn-outline-dark boton-accion" | 
| 65 | ng-click="solicitarConfirmacion(precioCondicion)"> | 67 | ng-click="solicitarConfirmacion(precioCondicion)"> | 
| 66 | <i class="fa fa-trash"></i> | 68 | <i class="fa fa-trash"></i> | 
| 67 | </button> | 69 | </button> | 
| 68 | </td> | 70 | </td> | 
| 69 | </tr> | 71 | </tr> | 
| 70 | </tbody> | 72 | </tbody> | 
| 71 | </table> | 73 | </table> | 
| 72 | </div> | 74 | </div> | 
| 73 | </div> | 75 | </div> | 
| 74 | 76 |