añadido facturas. faltan filtros pedidos

This commit is contained in:
2025-03-31 09:57:45 +02:00
parent e1fa993fcd
commit d5534269b3
4 changed files with 410 additions and 0 deletions

View File

@ -0,0 +1,55 @@
<div class="row">
<div class="col-2">
<div class="form-group">
<label for="acumuladoFacturacion"><?= lang('Facturas.acumuladoFacturacion') ?></label>
<input readonly type="text" class="form-control autonumeric-currency-totales" id="acumuladoFacturacion" name="acumulado_facturacion">
</div>
<div class="form-group">
<label for="totalPendientePago"><?= lang('Facturas.totalPendientePago') ?></label>
<input readonly type="text" class="form-control autonumeric-currency-totales" id="totalPendientePago" name="numero_factura">
</div>
</div>
</div>
<div class="row">
<table id="tableOfFacturasCliente" class="table table-striped table-hover" style="width: 100%;">
<thead>
<tr>
<th><?= lang('Facturas.numeroFactura') ?></th>
<th><?= lang('Facturas.fechaFactura') ?></th>
<th><?= lang('Facturas.total') ?></th>
<th><?= lang('Facturas.estado') ?></th>
<th><?= lang('Facturas.estadoPago') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
<tr>
<th><input type="text" class="form-control factura-filter" name="numero"></th>
<th>
<input id="fechaFactura" type="text" class="form-control factura-filter" name="fecha_factura_at">
</th>
<th></th>
<th>
<?php if(!auth()->user()->inGroup('cliente-admin') && !auth()->user()->inGroup('cliente-editor')): ?>
<select class="form-control factura-filter-select" name="estado">
<option value=""><?= lang('Facturas.todos') ?></option>
<option value="borrador"><?= lang('Facturas.borrador') ?></option>
<option value="validada"><?= lang('Facturas.validada') ?></option>
</select>
<?php endif; ?>
</th>
<th>
<select class="form-control factura-filter-select" name="estado_pago">
<option value=""><?= lang('Facturas.todos') ?></option>
<option value="pendiente"><?= lang('Facturas.pendiente') ?></option>
<option value="pagada"><?= lang('Facturas.pagada') ?></option>
<option value="insolvente"><?= lang('Facturas.insolvente') ?></option>
</select>
</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>

View File

@ -0,0 +1,40 @@
<div class="row">
<div class="col-2">
<div class="form-group">
<label for="acumuladoFacturacion"><?= lang('Pedidos.pedidosImpresion') ?></label>
<input readonly type="text" class="form-control autonumeric-currency-totales" id="pedidosImpresion"
name="pedidos_impresion">
</div>
<div class="form-group">
<label for="totalPendientePago"><?= lang('Pedidos.pedidosMaquetacion') ?></label>
<input readonly type="text" class="form-control autonumeric-currency-totales" id="pedidosMaquetacion"
name="pedidos_maquetacion">
</div>
<div class="form-group">
<label for="totalPendientePago" class="fw-bold"><?= lang('Pedidos.pedidosTotal') ?></label>
<input readonly type="text" class="form-control fw-bold autonumeric-currency-totales" id="totalPedidos"
name="total_pedidos">
</div>
</div>
</div>
<div class="row">
<table id="tableOfPedidosCliente" class="table table-striped table-hover" style="width: 100%;">
<thead>
<tr>
<th><?= lang('Pedidos.id') ?></th>
<th><?= lang('Pedidos.fecha') ?></th>
<th><?= lang('Pedidos.fecha_entrega') ?></th>
<th class='noFilter'><?= lang('Pedidos.num_paginas') ?></th>
<th class='totalizador'><?= lang('Pedidos.tiradas') ?></th>
<th class='totalizador'><?= lang('Pedidos.total_presupuesto') ?></th>
<th><?= lang('Pedidos.estado') ?></th>
<th class="noFilter text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>