foca-abm-precios-condiciones-listado.html 2.2 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">
        <table class="table table-default table-hover table-sm table-abm table-striped mb-0">
            <thead>
                <tr>
                    <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.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>