Implementados botones de imprimir factura y exportar lineas pedido

This commit is contained in:
imnavajas
2024-08-17 18:37:13 +02:00
parent 1170852209
commit d8eefcf1b7
5 changed files with 128 additions and 16 deletions

View File

@ -191,15 +191,15 @@
<?= lang("Basic.global.edit") ?>
</button>
<?php endif; ?>
<button
type="button"
class="btn btn-label-primary float-start me-sm-3 me-1"
name="exportar_lineas"
id="exportar_lineas" >
<span class="ti-xs ti ti-file-spreadsheet me-1"></span>
<?= lang("Facturas.exportarLineas") ?>
</button>
<?= anchor(
route_to("lineasToExcel", $facturaEntity->id),
'<span class="ti-xs ti ti-file-spreadsheet me-1"></span>' .
lang("Facturas.exportarLineas"),
[
"class" => "btn btn-label-primary float-start me-sm-3 me-1",
]
) ?>
<button
type="button"

View File

@ -44,13 +44,21 @@
value="<?= lang("Facturas.borrarFactura") ?>"
/>
<?php endif; ?>
<input type="button"
class="btn btn-info float-start me-sm-3 me-1"
id="imprimirFactura"
name="imprimirFactura"
value="<?= lang("Facturas.imprimirFactura") ?>"
/>
<?= anchor(route_to("facturasList"), lang("Basic.global.back"), ["class" => "btn btn-secondary float-start"]) ?>
<?= anchor(
route_to("facturaToPdf", $facturaEntity->id),
lang("Facturas.imprimirFactura"),
[
"class" => "btn btn-info float-start me-sm-3 me-1",
"target" => "_blank"
]
) ?>
<?= anchor(
route_to("facturasList"),
lang("Basic.global.back"),
[
"class" => "btn btn-secondary float-start"
]
) ?>
</div><!-- /.card-footer -->
</form>
</div><!-- //.card -->