foca-abm-precios-condiciones-listado.html 3.21 KB
<div class="row">
    <foca-cabecera-facturador 
    titulo="'Precios y condiciones'"
    fecha="now"
    class="mb-0 col-lg-12"
    ></foca-cabecera-facturador>
</div>
<div class="row">
    <div class="col-12 col-md-10 p-0 mt-4 border border-white rounded">
            <div class="form-group input-group mt-3 px-5">
                    <input
                        type="text"
                        class="form-control form-control-sm"
                        id="search"
                        placeholder="Búsqueda"
                        teclado-virtual
                        ng-keypress="buscar($event.keyCode)"
                        ng-model="filters"
                    />
                    <div class="input-group-append">
                        <button
                            ladda="searchLoading"
                            class="btn btn-outline-secondary"
                            type="button"
                            ng-click="buscar(13)"
                        >
                            <i class="fa fa-search" aria-hidden="true"></i>
                        </button>
                    </div>
                </div>
        <table class="table table-default table-hover table-sm table-abm table-striped mb-0">
            <thead>
                <tr>
                    <th>Código</th>
                    <th>Nombre</th>
                    <th>Lista de precio</th>
                    <th>Plazos</th>
                    <th colspan="2" class="text-center">
                        <button
                            title="Agregar"
                            class="btn btn-outline-debo boton-accion"
                            ng-click="editar(0)">
                            <i class="fa fa-plus"></i>
                        </button>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="precioCondicion in preciosCondiciones">
                    <td ng-bind="precioCondicion.id | rellenarDigitos: 4: 0"></td>
                    <td ng-bind="precioCondicion.nombre"></td>
                    <td ng-bind="precioCondicion.listaPrecio.ID + ' - ' + precioCondicion.listaPrecio.DES + ' - ' + precioCondicion.listaPrecio.moneda.DETALLE"></td>
                    <td><span 
                            ng-repeat="plazo in precioCondicion.plazoPago" 
                            ng-if="plazo.activo" 
                            ng-bind="$last ? plazo.dias : plazo.dias + ', '"></span></td>
                    <td class="text-center">
                        <button
                            title="Editar"
                            class="btn btn-outline-dark boton-accion"
                            ng-click="editar(precioCondicion.id)">
                            <i class="fa fa-pencil"></i>
                        </button>
                        <button
                            title="Eliminar"
                            class="btn btn-outline-dark boton-accion"
                            ng-click="solicitarConfirmacion(precioCondicion)">
                            <i class="fa fa-trash"></i>
                        </button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>