mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
tablas encuadernacion ot pdf
This commit is contained in:
@ -65,7 +65,7 @@ class OrdenTrabajo extends BaseConfig
|
||||
["bg" => "yellow", "color" => "black"],
|
||||
["bg" => "purple", "color" => "white"],
|
||||
["bg" => "orange", "color" => "white"],
|
||||
["bg" => "blue", "color" => "black"],
|
||||
["bg" => "blue", "color" => "white"],
|
||||
["bg" => "pink", "color" => "black"],
|
||||
["bg" => "#FFFFFF", "color" => "black"],
|
||||
];
|
||||
|
||||
@ -194,39 +194,75 @@ class PresupuestoLineaEntity extends \CodeIgniter\Entity\Entity
|
||||
return $m->find($this->attributes['tarifa_impresion_id']);
|
||||
}
|
||||
|
||||
public function get_impresion_logo(){
|
||||
public function get_impresion_logo()
|
||||
{
|
||||
$logo = config(LogoImpresion::class);
|
||||
return $logo->get_logo_path($this->attributes["tipo"]);
|
||||
}
|
||||
public function get_nombre_tarea() : ?string
|
||||
public function get_nombre_tarea(): ?string
|
||||
{
|
||||
$nombre = null;
|
||||
$impresion_bn = ["lp_bn","lp_bnhq","lp_rot_bn"];
|
||||
$impresion_color = ["lp_color","lp_colorhq","lp_rot_color"];
|
||||
$impresion_bn = ["lp_bn", "lp_bnhq", "lp_rot_bn"];
|
||||
$impresion_color = ["lp_color", "lp_colorhq", "lp_rot_color"];
|
||||
$impresion_cubierta = ["lp_cubierta"];
|
||||
$impresion_guardas = ["lp_guardas"];
|
||||
$impresion_sobrecubierta = ["lp_sobrecubierta"];
|
||||
|
||||
$is_bn = in_array($this->attributes["tipo"],$impresion_bn);
|
||||
$is_color = in_array($this->attributes["tipo"],$impresion_color);
|
||||
$is_impresion_cubierta = in_array($this->attributes["tipo"],$impresion_cubierta);
|
||||
$is_impresion_guarda = in_array($this->attributes["tipo"],$impresion_guardas);
|
||||
$is_impresion_sobrecubierta = in_array($this->attributes["tipo"],$impresion_sobrecubierta);
|
||||
$is_bn = in_array($this->attributes["tipo"], $impresion_bn);
|
||||
$is_color = in_array($this->attributes["tipo"], $impresion_color);
|
||||
$is_impresion_cubierta = in_array($this->attributes["tipo"], $impresion_cubierta);
|
||||
$is_impresion_guarda = in_array($this->attributes["tipo"], $impresion_guardas);
|
||||
$is_impresion_sobrecubierta = in_array($this->attributes["tipo"], $impresion_sobrecubierta);
|
||||
|
||||
if($is_bn) $nombre ="Impresión B/N";
|
||||
if($is_color) $nombre ="Impresión color";
|
||||
if($is_impresion_cubierta) $nombre ="Impresión cubierta";
|
||||
if($is_impresion_guarda) $nombre ="Impresión guarda";
|
||||
if($is_impresion_sobrecubierta) $nombre ="Impresión sobrecubierta";
|
||||
if ($is_bn) $nombre = "Impresión B/N";
|
||||
if ($is_color) $nombre = "Impresión color";
|
||||
if ($is_impresion_cubierta) $nombre = "Impresión cubierta";
|
||||
if ($is_impresion_guarda) $nombre = "Impresión guarda";
|
||||
if ($is_impresion_sobrecubierta) $nombre = "Impresión sobrecubierta";
|
||||
|
||||
return $nombre;
|
||||
}
|
||||
public function isRotativa() : bool
|
||||
{
|
||||
return in_array($this->attributes['tipo'],['lp_rot_color','lp_rot_bn']);
|
||||
public function isGuarda(): bool
|
||||
{
|
||||
return in_array($this->attributes["tipo"], ["lp_guardas"]);
|
||||
}
|
||||
public function isColor():bool {
|
||||
return in_array($this->attributes['tipo'],['lp_color','lp_colorhq','lp_rot_color']);
|
||||
|
||||
public function isCubierta(): bool
|
||||
{
|
||||
return in_array($this->attributes["tipo"], ["lp_cubierta"]);
|
||||
}
|
||||
public function isSobreCubierta(): bool
|
||||
{
|
||||
return in_array($this->attributes["tipo"], ["lp_sobrecubierta"]);
|
||||
}
|
||||
public function isRotativa(): bool
|
||||
{
|
||||
return in_array($this->attributes['tipo'], ['lp_rot_color', 'lp_rot_bn']);
|
||||
}
|
||||
public function isColor(): bool
|
||||
{
|
||||
return in_array($this->attributes['tipo'], ['lp_color', 'lp_colorhq', 'lp_rot_color']);
|
||||
}
|
||||
public function isBN(): bool
|
||||
{
|
||||
return in_array($this->attributes['tipo'], ["lp_bn", "lp_bnhq", "lp_rot_bn"]);
|
||||
}
|
||||
|
||||
public function tinta(): string
|
||||
{
|
||||
$tinta = "";
|
||||
if ($this->isCubierta()) {
|
||||
$paginas = $this->attributes['paginas'];
|
||||
if ($paginas / 2 == 1) {
|
||||
$tinta = '4/0';
|
||||
}
|
||||
if ($paginas / 2 == 2) {
|
||||
$tinta = '4/4';
|
||||
}
|
||||
} elseif ($this->isColor()) {
|
||||
$tinta = '4/4';
|
||||
} elseif ($this->isBN()) {
|
||||
$tinta = '4/0';
|
||||
}
|
||||
return $tinta;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ if (auth()->user()->can('catalogo.menu')) {
|
||||
<li class="menu-item">
|
||||
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
||||
<i class="menu-icon tf-icons ti ti-book"></i>
|
||||
<?= lang("App.menu_catalogo") ?>
|
||||
<div><?= lang("App.menu_catalogo") ?></div>
|
||||
</a>
|
||||
<ul class="menu-sub">
|
||||
<?php if (auth()->user()->can('catalogo.menu')) { ?>
|
||||
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/CC2.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/CC2.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th >Encuadernacion</th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/CC2S.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/CC2S.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th >Encuadernacion</th>
|
||||
<th class="cell-50">Solapas</th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td><?= $presupuesto->solapas ? "SI ($presupuesto->solapas_ancho mm.)" : "NO" ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
28
ci4/app/Views/themes/vuexy/pdfs/encuadernados/ESP.php
Normal file
28
ci4/app/Views/themes/vuexy/pdfs/encuadernados/ESP.php
Normal file
@ -0,0 +1,28 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th class="cell-50">Encuadernacion</th>
|
||||
<th class="cell-50">Tipo</th>
|
||||
<th class="cell-50">Color</th>
|
||||
<th class="cell-50">Plakenes</th>
|
||||
<th class="cell-50">Plakene</th>
|
||||
<th class="cell-50">Externo</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RCHV.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RCHV.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th>Encuadernacion</th>
|
||||
<th class="cell-50">Pliegos</th>
|
||||
<th class="cell-50">Pliegos</th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50">Sobrecubierta</th>
|
||||
<th class="cell-50">Guardas</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td><?=$linea_impresion->pliegos?></td>
|
||||
<td><?=$linea_impresion->pliegos?></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->hasSobrecubierta() ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->guardas ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RCHVS.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RCHVS.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th>Encuadernacion</th>
|
||||
<th class="cell-50">Pliegos</th>
|
||||
<th class="cell-50">Pliegos</th>
|
||||
<th class="cell-50">Solapas</th>
|
||||
<th class="cell-50">Sobrecubierta</th>
|
||||
<th class="cell-50">Guardas</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td><?=$linea_impresion->pliegos?></td>
|
||||
<td><?=$linea_impresion->pliegos?></td>
|
||||
<td><?= $presupuesto->solapas ? "SI ($presupuesto->solapas_ancho mm.)" : "NO" ?></td>
|
||||
<td><?= $presupuesto->hasSobrecubierta() ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->guardas ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RF.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RF.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th >Encuadernacion</th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50">Sobrecubierta</th>
|
||||
<th class="cell-50">Guardas</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->hasSobrecubierta() ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->guardas ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RFS.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/RFS.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th >Encuadernacion</th>
|
||||
<th class="cell-50">Solapas</th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50"></th>
|
||||
<th class="cell-50">Sobrecubierta</th>
|
||||
<th class="cell-50">Guardas</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td><?= $presupuesto->solapas ? "SI ($presupuesto->solapas_ancho mm.)" : "NO" ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->hasSobrecubierta() ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->guardas ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
36
ci4/app/Views/themes/vuexy/pdfs/encuadernados/TDC.php
Normal file
36
ci4/app/Views/themes/vuexy/pdfs/encuadernados/TDC.php
Normal file
@ -0,0 +1,36 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th class="encuadernacion">Encuadernacion</th>
|
||||
<th class="cell-50">Pliegos</th>
|
||||
<th class="cell-50">Pliegos</th>
|
||||
<th class="cell-50">Guardas</th>
|
||||
<th class="cell-50">Guardas Impresion</th>
|
||||
<th class="cell-50">Cabezada</th>
|
||||
<th class="cell-50">Lomo</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td><?= $linea_impresion->pliegos ?></td>
|
||||
<td><?= $linea_impresion->pliegos ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>Color/NO</td>
|
||||
<td>Recto/Redondo</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="encuadernacion" colspan="1">Sobrecubierta</td>
|
||||
<td style="color:red" colspan="2"><?= $linea_impresion->isSobreCubierta() ? "SI" : "NO" ?></td>
|
||||
<td class="encuadernacion">Retractilado</td>
|
||||
<td style="color:red"><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td class="encuadernacion">Marcapáginas</td>
|
||||
<td style="color:red"><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/TDF.php
Normal file
30
ci4/app/Views/themes/vuexy/pdfs/encuadernados/TDF.php
Normal file
@ -0,0 +1,30 @@
|
||||
<table>
|
||||
<tr class="encuadernacion">
|
||||
<th >Encuadernacion</th>
|
||||
<th class="cell-50">Guardas</th>
|
||||
<th class="cell-50">Guardas Imp.</th>
|
||||
<th class="cell-50">Cabezada</th>
|
||||
<th class="cell-50">Lomo</th>
|
||||
<th class="cell-50">Sobrecubierta</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
<th class="cell-50">Marcapáginas</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
29
ci4/app/Views/themes/vuexy/pdfs/encuadernados/WIO.php
Normal file
29
ci4/app/Views/themes/vuexy/pdfs/encuadernados/WIO.php
Normal file
@ -0,0 +1,29 @@
|
||||
<table>
|
||||
<caption>
|
||||
WIO
|
||||
</caption>
|
||||
<tr class="encuadernacion">
|
||||
<th class="cell-50">Encuadernacion</th>
|
||||
<th class="cell-50">Color</th>
|
||||
<th class="cell-50">Plakenes</th>
|
||||
<th class="cell-50">Plakene</th>
|
||||
<th class="cell-50">Externo</th>
|
||||
<th class="cell-50">Retractilado</th>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr style="color: red;">
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr style="color: red;">
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
@ -156,6 +156,12 @@ $settings = $session->get('settings');
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<table class="h-50">
|
||||
<tr>
|
||||
<th>IDSK</th>
|
||||
<td class="t-cell">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>CLIENTE</th>
|
||||
<td class="t-cell">
|
||||
@ -229,9 +235,9 @@ $settings = $session->get('settings');
|
||||
<th>Tiempo</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= $presupuesto->paginas * $presupuesto->tirada ?></td>
|
||||
<td><?= $presupuesto->paginas ?></td> <!-- Páginas libro -->
|
||||
<td><?= $presupuesto->tirada ?> </td>
|
||||
<td>??</td>
|
||||
<td><?= $linea_impresion->tinta() ?></td>
|
||||
<td><?= json_decode($linea_impresion->formas)->formas ?></td>
|
||||
<td><strong><?= $linea_impresion->maquina()->nombre ?></strong></td>
|
||||
<td><?= $linea_impresion->rotativa_clicks_total ?></td>
|
||||
@ -275,7 +281,7 @@ $settings = $session->get('settings');
|
||||
<th>Tiempo</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>??</td>
|
||||
<td><?= $linea_cubierta->tinta() ?></td>
|
||||
<td><?= $presupuesto->tirada ?></td>
|
||||
<td><strong><?= $linea_cubierta->maquina()->nombre ?></strong></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
@ -302,46 +308,41 @@ $settings = $session->get('settings');
|
||||
<div class="row mb-2">
|
||||
<div class="section-title encuadernacion">ENCUADERNACIÓN</div>
|
||||
<div class="col-12">
|
||||
<div class="col-1 w-10 mb-2 text-center" style="background-color: <?= $colors["ot"]["bg"] ?>;color:<?= $colors["ot"]["color"] ?>;">
|
||||
<span class="fs-bold"><?= isset($encuadernaciones[0]) ? $encuadernaciones[0]->tarifa()->code ?? "?" : "?" ?></span>
|
||||
</div>
|
||||
<table>
|
||||
<tr>
|
||||
<th class="t-header" style="width: 10%;">Plastificado</th>
|
||||
<td class="t-cell text-center"><?= $acabados[0]->tarifa()->nombre ?></td>
|
||||
<th class="t-header" style="width: 10%;">UVI</th>
|
||||
<td class="t-cell text-center"> <?= $uvi ? $uvi->code : "" ?> </td>
|
||||
<th class="t-header" style="width: 10%;">Máquina</th>
|
||||
<td class="t-cell text-center"><?= implode("/", array_map(fn($q) => $q->nombre, $acabados[0]->maquinas())) ?> </td>
|
||||
<th class="t-header " style="width: 10%;">Operario</th>
|
||||
<td class="t-cell text-center"><?= $ot->users()?->plastificado_by?->getFullName() ?? null ?> </td>
|
||||
<td class="w-10 encuadernacion">Plastificado</td>
|
||||
<td><?= $acabados[0]->tarifa()->nombre ?></td>
|
||||
<td class="encuadernacion bg-encuadernacion" style="width: 100px;">UVI</td>
|
||||
<td style="color:red;width:100px" class="bg-encuadernacion"> <?= $uvi ? 'SI' : "NO" ?> </td>
|
||||
<td class="encuadernacion bg-encuadernacion" style="width: 100px;">EXTERNO:</td>
|
||||
<td class="bg-encuadernacion" style="width: 100px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Encuadernacion</th>
|
||||
<th>Solapas</th>
|
||||
<th>Sobrecubierta</th>
|
||||
<th>Plegado</th>
|
||||
<th>Guardas</th>
|
||||
<th>Retractilado</th>
|
||||
<th>Marcapáginas</th>
|
||||
<td class="text-start" colspan="2">Meter datos de solapas y preparación guillotina</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td class="t-header">CORTE PIE:</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
||||
<tr>
|
||||
<td><?= $value->tarifa()->nombre ?></td>
|
||||
<td><?= $presupuesto->solapas ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->hasSobrecubierta() ? "SI" : "NO" ?></td>
|
||||
<td>_____<?= " " . lang("Produccion.pliegos_de") . " " ?>_____</td>
|
||||
<td><?= $presupuesto->guardas ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->retractilado ? "SI" : "NO" ?></td>
|
||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="7">Sin encuadernación</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$encuadernacion_code = isset($encuadernaciones[0]) ? $encuadernaciones[0]->tarifa()->code : null;
|
||||
try {
|
||||
if ($encuadernacion_code) {
|
||||
echo view("/themes/vuexy/pdfs/encuadernados/$encuadernacion_code.php");
|
||||
} else {
|
||||
throw new Exception('No existe código de encuadernación.');
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
$error_message = $th->getMessage();
|
||||
echo "<span style='color:red'>No se ha podido renderizar la tabla de encuadernación</span>";
|
||||
echo "<br><span style='color:red'>$error_message</span>";
|
||||
}
|
||||
?>
|
||||
<?php if (count($encuadernaciones) > 0): ?>
|
||||
|
||||
<div class="comments">
|
||||
|
||||
@ -1,182 +1,192 @@
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 0;
|
||||
}
|
||||
@media print {
|
||||
body,html {
|
||||
width: 210mm;
|
||||
height: 297mm;
|
||||
max-width: 210mm;
|
||||
max-height: 297mm;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
/* ... the rest of the rules ... */
|
||||
}
|
||||
html {
|
||||
font-family: Arial, sans-serif;
|
||||
size: A4;
|
||||
margin: 0;
|
||||
}
|
||||
@media print {
|
||||
body,
|
||||
html {
|
||||
width: 210mm;
|
||||
height: 297mm;
|
||||
max-width: 210mm;
|
||||
font-size : 11px;
|
||||
max-height: 297mm;
|
||||
background-color: white;
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
/* ... the rest of the rules ... */
|
||||
}
|
||||
body{
|
||||
border: 0px solid;
|
||||
padding: 10px;
|
||||
max-width: 210mm;
|
||||
max-height: 297mm;
|
||||
background-color : white;
|
||||
|
||||
html {
|
||||
font-family: Arial, sans-serif;
|
||||
width: 210mm;
|
||||
height: 297mm;
|
||||
max-width: 210mm;
|
||||
font-size: 11px;
|
||||
max-height: 297mm;
|
||||
background-color: white;
|
||||
}
|
||||
.portada-img{
|
||||
border-style: solid;
|
||||
height: 100%;
|
||||
border: 2px solid;
|
||||
body {
|
||||
border: 0px solid;
|
||||
padding: 10px;
|
||||
margin : 10px;
|
||||
max-width: 210mm;
|
||||
max-height: 297mm;
|
||||
background-color: white;
|
||||
}
|
||||
.square{
|
||||
align-items: center;
|
||||
align-content : center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size : 14px;
|
||||
|
||||
.portada-img {
|
||||
border-style: solid;
|
||||
height: 100%;
|
||||
border: 2px solid;
|
||||
}
|
||||
.esquema{
|
||||
|
||||
|
||||
.square {
|
||||
align-items: center;
|
||||
align-content: center;
|
||||
justify-content: center;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
}
|
||||
.pagina-imposicion-outer-start{
|
||||
border-top: 2px solid;
|
||||
border-left: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
width: 50px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.esquema {
|
||||
}
|
||||
.pagina-imposicion-outer-end{
|
||||
border-top: 2px solid;
|
||||
border-right: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
width: 50px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.pagina-imposicion-outer-start {
|
||||
border-top: 2px solid;
|
||||
border-left: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
width: 50px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.pagina-imposicion-outer{
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
width: 50px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.pagina-imposicion-outer-end {
|
||||
border-top: 2px solid;
|
||||
border-right: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
width: 50px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.pagina-imposicion-inner{
|
||||
border: 2px solid;
|
||||
font-size: 25px;
|
||||
width: 40px;
|
||||
height: 90px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.pagina-imposicion-outer {
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
width: 50px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.esquema-imposicion-wrapper{
|
||||
|
||||
.pagina-imposicion-inner {
|
||||
border: 2px solid;
|
||||
font-size: 25px;
|
||||
width: 40px;
|
||||
height: 90px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.imposicion{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
.esquema-imposicion-wrapper {
|
||||
}
|
||||
.imposicion {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.section-title {
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cubierta{
|
||||
color: #007bff;
|
||||
.cubierta {
|
||||
color: #007bff;
|
||||
}
|
||||
.encuadernacion{
|
||||
color: green;
|
||||
.encuadernacion {
|
||||
color: green;
|
||||
}
|
||||
.impresion{
|
||||
color: #ff4000;
|
||||
.impresion {
|
||||
color: #ff4000;
|
||||
}
|
||||
.comments {
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin-top: 0.2rem;
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
.comment-content {
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
border: solid;
|
||||
border-width: 1px;
|
||||
line-height: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
border: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
margin-bottom: 5px;
|
||||
font-size: 10px;
|
||||
width: 100%;
|
||||
margin-bottom: 5px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
table td {
|
||||
text-align: center;
|
||||
table td {
|
||||
text-align: center;
|
||||
}
|
||||
table,th,td{
|
||||
border: 0.1px solid rgb(0, 0, 0);
|
||||
border-collapse: collapse;
|
||||
table,
|
||||
th,
|
||||
td {
|
||||
border: 0.1px solid rgb(0, 0, 0);
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table th {
|
||||
background-color: #f4f4f4;
|
||||
font-weight: bold;
|
||||
color : black;
|
||||
text-align: center;
|
||||
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
text-align: center;
|
||||
}
|
||||
table td{
|
||||
font-weight: bold;
|
||||
table td {
|
||||
font-weight: bold;
|
||||
}
|
||||
.comments {
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin-top: 0.2rem;
|
||||
color: #555;
|
||||
font-style: italic;
|
||||
margin-top: 0.2rem;
|
||||
}
|
||||
.t-header{
|
||||
color: black;
|
||||
width: 25%;
|
||||
.t-header {
|
||||
color: black;
|
||||
width: 25%;
|
||||
}
|
||||
.t-cell{
|
||||
background-color: white;
|
||||
color: black;
|
||||
text-align: start;
|
||||
padding-left: 0.2rem;
|
||||
.t-cell {
|
||||
color: black;
|
||||
text-align: start;
|
||||
padding-left: 0.2rem;
|
||||
}
|
||||
.t-row{
|
||||
font-size: 8px;
|
||||
width : 100%;
|
||||
.t-row {
|
||||
font-size: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
.bicolor{
|
||||
background: linear-gradient( to right, #00b5fc 0%, #00b5fc 45%, #000000 55%, #000000 100%);
|
||||
color: white;
|
||||
.bicolor {
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
#00b5fc 0%,
|
||||
#00b5fc 45%,
|
||||
#000000 55%,
|
||||
#000000 100%
|
||||
);
|
||||
color: white;
|
||||
}
|
||||
.cmyk{
|
||||
background-image: url('/themes/vuexy/img/safekat/presupuestos/cmyk.png');
|
||||
background-size: 110px;
|
||||
color : white;
|
||||
text-shadow: 0px 0px 2px black;
|
||||
stroke:white;
|
||||
.cmyk {
|
||||
background-image: url("/themes/vuexy/img/safekat/presupuestos/cmyk.png");
|
||||
background-size: 110px;
|
||||
color: white;
|
||||
text-shadow: 0px 0px 2px black;
|
||||
stroke: white;
|
||||
}
|
||||
.bn{
|
||||
background : black;
|
||||
color: white;
|
||||
.bn {
|
||||
background: black;
|
||||
color: white;
|
||||
}
|
||||
.footer {
|
||||
font-size: 10px;
|
||||
}
|
||||
.bg-encuadernacion {
|
||||
background-color: #bbd8a3;
|
||||
}
|
||||
.encuadernacion th {
|
||||
color: green;
|
||||
}
|
||||
.cell-50 {
|
||||
width: 50px;
|
||||
}
|
||||
.footer{
|
||||
font-size : 10px
|
||||
}
|
||||
Reference in New Issue
Block a user