mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'bug/boton_imprimir_presu_cliente' into 'main'
Añadido boton imprimir en presupuesto cliente, tanto en presupuestos confirmados como no See merge request jjimenez/safekat!322
This commit is contained in:
@ -174,7 +174,19 @@
|
|||||||
<span class="align-middle d-sm-inline-block d-none me-sm-1">Duplicar</span>
|
<span class="align-middle d-sm-inline-block d-none me-sm-1">Duplicar</span>
|
||||||
<i class="ti ti-copy ti-xs"></i>
|
<i class="ti ti-copy ti-xs"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<?php
|
||||||
|
// Mostrar boton de impresion solo en presupuestos guardados (no add!)
|
||||||
|
if($formAction == "edit") {
|
||||||
|
echo anchor(
|
||||||
|
route_to("presupuestoToPdf", $presupuestoEntity->id),
|
||||||
|
lang("Basic.global.Print"),
|
||||||
|
[
|
||||||
|
"class" => "btn btn-dark float-start me-sm-3 ml-2",
|
||||||
|
"target" => "_blank"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -218,6 +230,17 @@
|
|||||||
<span class="align-middle d-sm-inline-block d-none me-sm-1">Duplicar</span>
|
<span class="align-middle d-sm-inline-block d-none me-sm-1">Duplicar</span>
|
||||||
<i class="ti ti-copy ti-xs"></i>
|
<i class="ti ti-copy ti-xs"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<?php
|
||||||
|
// Si esta confirmado siempre es un presupuesto guardado
|
||||||
|
echo anchor(
|
||||||
|
route_to("presupuestoToPdf", $presupuestoEntity->id),
|
||||||
|
lang("Basic.global.Print"),
|
||||||
|
[
|
||||||
|
"class" => "btn btn-dark float-start me-sm-3 ml-2",
|
||||||
|
"target" => "_blank"
|
||||||
|
]
|
||||||
|
);
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user