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" => "yellow", "color" => "black"],
|
||||||
["bg" => "purple", "color" => "white"],
|
["bg" => "purple", "color" => "white"],
|
||||||
["bg" => "orange", "color" => "white"],
|
["bg" => "orange", "color" => "white"],
|
||||||
["bg" => "blue", "color" => "black"],
|
["bg" => "blue", "color" => "white"],
|
||||||
["bg" => "pink", "color" => "black"],
|
["bg" => "pink", "color" => "black"],
|
||||||
["bg" => "#FFFFFF", "color" => "black"],
|
["bg" => "#FFFFFF", "color" => "black"],
|
||||||
];
|
];
|
||||||
|
|||||||
@ -194,7 +194,8 @@ class PresupuestoLineaEntity extends \CodeIgniter\Entity\Entity
|
|||||||
return $m->find($this->attributes['tarifa_impresion_id']);
|
return $m->find($this->attributes['tarifa_impresion_id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_impresion_logo(){
|
public function get_impresion_logo()
|
||||||
|
{
|
||||||
$logo = config(LogoImpresion::class);
|
$logo = config(LogoImpresion::class);
|
||||||
return $logo->get_logo_path($this->attributes["tipo"]);
|
return $logo->get_logo_path($this->attributes["tipo"]);
|
||||||
}
|
}
|
||||||
@ -221,12 +222,47 @@ class PresupuestoLineaEntity extends \CodeIgniter\Entity\Entity
|
|||||||
|
|
||||||
return $nombre;
|
return $nombre;
|
||||||
}
|
}
|
||||||
|
public function isGuarda(): bool
|
||||||
|
{
|
||||||
|
return in_array($this->attributes["tipo"], ["lp_guardas"]);
|
||||||
|
}
|
||||||
|
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
|
public function isRotativa(): bool
|
||||||
{
|
{
|
||||||
return in_array($this->attributes['tipo'], ['lp_rot_color', 'lp_rot_bn']);
|
return in_array($this->attributes['tipo'], ['lp_rot_color', 'lp_rot_bn']);
|
||||||
}
|
}
|
||||||
public function isColor():bool {
|
public function isColor(): bool
|
||||||
|
{
|
||||||
return in_array($this->attributes['tipo'], ['lp_color', 'lp_colorhq', 'lp_rot_color']);
|
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">
|
<li class="menu-item">
|
||||||
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
<a href="javascript:void(0);" class="menu-link menu-toggle">
|
||||||
<i class="menu-icon tf-icons ti ti-book"></i>
|
<i class="menu-icon tf-icons ti ti-book"></i>
|
||||||
<?= lang("App.menu_catalogo") ?>
|
<div><?= lang("App.menu_catalogo") ?></div>
|
||||||
</a>
|
</a>
|
||||||
<ul class="menu-sub">
|
<ul class="menu-sub">
|
||||||
<?php if (auth()->user()->can('catalogo.menu')) { ?>
|
<?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="row">
|
||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<table class="h-50">
|
<table class="h-50">
|
||||||
|
<tr>
|
||||||
|
<th>IDSK</th>
|
||||||
|
<td class="t-cell">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>CLIENTE</th>
|
<th>CLIENTE</th>
|
||||||
<td class="t-cell">
|
<td class="t-cell">
|
||||||
@ -229,9 +235,9 @@ $settings = $session->get('settings');
|
|||||||
<th>Tiempo</th>
|
<th>Tiempo</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?= $presupuesto->paginas * $presupuesto->tirada ?></td>
|
<td><?= $presupuesto->paginas ?></td> <!-- Páginas libro -->
|
||||||
<td><?= $presupuesto->tirada ?> </td>
|
<td><?= $presupuesto->tirada ?> </td>
|
||||||
<td>??</td>
|
<td><?= $linea_impresion->tinta() ?></td>
|
||||||
<td><?= json_decode($linea_impresion->formas)->formas ?></td>
|
<td><?= json_decode($linea_impresion->formas)->formas ?></td>
|
||||||
<td><strong><?= $linea_impresion->maquina()->nombre ?></strong></td>
|
<td><strong><?= $linea_impresion->maquina()->nombre ?></strong></td>
|
||||||
<td><?= $linea_impresion->rotativa_clicks_total ?></td>
|
<td><?= $linea_impresion->rotativa_clicks_total ?></td>
|
||||||
@ -275,7 +281,7 @@ $settings = $session->get('settings');
|
|||||||
<th>Tiempo</th>
|
<th>Tiempo</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>??</td>
|
<td><?= $linea_cubierta->tinta() ?></td>
|
||||||
<td><?= $presupuesto->tirada ?></td>
|
<td><?= $presupuesto->tirada ?></td>
|
||||||
<td><strong><?= $linea_cubierta->maquina()->nombre ?></strong></td>
|
<td><strong><?= $linea_cubierta->maquina()->nombre ?></strong></td>
|
||||||
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
<td><?= $presupuesto->marcapaginas ? "SI" : "NO" ?></td>
|
||||||
@ -302,46 +308,41 @@ $settings = $session->get('settings');
|
|||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
<div class="section-title encuadernacion">ENCUADERNACIÓN</div>
|
<div class="section-title encuadernacion">ENCUADERNACIÓN</div>
|
||||||
<div class="col-12">
|
<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>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="t-header" style="width: 10%;">Plastificado</th>
|
<td class="w-10 encuadernacion">Plastificado</td>
|
||||||
<td class="t-cell text-center"><?= $acabados[0]->tarifa()->nombre ?></td>
|
<td><?= $acabados[0]->tarifa()->nombre ?></td>
|
||||||
<th class="t-header" style="width: 10%;">UVI</th>
|
<td class="encuadernacion bg-encuadernacion" style="width: 100px;">UVI</td>
|
||||||
<td class="t-cell text-center"> <?= $uvi ? $uvi->code : "" ?> </td>
|
<td style="color:red;width:100px" class="bg-encuadernacion"> <?= $uvi ? 'SI' : "NO" ?> </td>
|
||||||
<th class="t-header" style="width: 10%;">Máquina</th>
|
<td class="encuadernacion bg-encuadernacion" style="width: 100px;">EXTERNO:</td>
|
||||||
<td class="t-cell text-center"><?= implode("/", array_map(fn($q) => $q->nombre, $acabados[0]->maquinas())) ?> </td>
|
<td class="bg-encuadernacion" style="width: 100px;"></td>
|
||||||
<th class="t-header " style="width: 10%;">Operario</th>
|
</tr>
|
||||||
<td class="t-cell text-center"><?= $ot->users()?->plastificado_by?->getFullName() ?? null ?> </td>
|
<tr>
|
||||||
|
<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>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table>
|
|
||||||
<tr>
|
<?php
|
||||||
<th>Encuadernacion</th>
|
$encuadernacion_code = isset($encuadernaciones[0]) ? $encuadernaciones[0]->tarifa()->code : null;
|
||||||
<th>Solapas</th>
|
try {
|
||||||
<th>Sobrecubierta</th>
|
if ($encuadernacion_code) {
|
||||||
<th>Plegado</th>
|
echo view("/themes/vuexy/pdfs/encuadernados/$encuadernacion_code.php");
|
||||||
<th>Guardas</th>
|
} else {
|
||||||
<th>Retractilado</th>
|
throw new Exception('No existe código de encuadernación.');
|
||||||
<th>Marcapáginas</th>
|
}
|
||||||
</tr>
|
} catch (\Throwable $th) {
|
||||||
<?php if (count($encuadernaciones) > 0): ?>
|
$error_message = $th->getMessage();
|
||||||
<?php foreach ($encuadernaciones as $key => $value): ?>
|
echo "<span style='color:red'>No se ha podido renderizar la tabla de encuadernación</span>";
|
||||||
<tr>
|
echo "<br><span style='color:red'>$error_message</span>";
|
||||||
<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 if (count($encuadernaciones) > 0): ?>
|
<?php if (count($encuadernaciones) > 0): ?>
|
||||||
|
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
|
|||||||
@ -3,7 +3,8 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@media print {
|
@media print {
|
||||||
body,html {
|
body,
|
||||||
|
html {
|
||||||
width: 210mm;
|
width: 210mm;
|
||||||
height: 297mm;
|
height: 297mm;
|
||||||
max-width: 210mm;
|
max-width: 210mm;
|
||||||
@ -24,10 +25,10 @@ html {
|
|||||||
body {
|
body {
|
||||||
border: 0px solid;
|
border: 0px solid;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
margin : 10px;
|
||||||
max-width: 210mm;
|
max-width: 210mm;
|
||||||
max-height: 297mm;
|
max-height: 297mm;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
||||||
}
|
}
|
||||||
.portada-img {
|
.portada-img {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
@ -40,11 +41,8 @@ body{
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
}
|
}
|
||||||
.esquema {
|
.esquema {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
.pagina-imposicion-outer-start {
|
.pagina-imposicion-outer-start {
|
||||||
border-top: 2px solid;
|
border-top: 2px solid;
|
||||||
@ -83,10 +81,8 @@ body{
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
.esquema-imposicion-wrapper {
|
.esquema-imposicion-wrapper {
|
||||||
|
|
||||||
}
|
}
|
||||||
.imposicion {
|
.imposicion {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -128,17 +124,17 @@ table {
|
|||||||
table td {
|
table td {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
table,th,td{
|
table,
|
||||||
|
th,
|
||||||
|
td {
|
||||||
border: 0.1px solid rgb(0, 0, 0);
|
border: 0.1px solid rgb(0, 0, 0);
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
table th {
|
table th {
|
||||||
background-color: #f4f4f4;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: black;
|
color: black;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
}
|
}
|
||||||
table td {
|
table td {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -153,7 +149,6 @@ table td{
|
|||||||
width: 25%;
|
width: 25%;
|
||||||
}
|
}
|
||||||
.t-cell {
|
.t-cell {
|
||||||
background-color: white;
|
|
||||||
color: black;
|
color: black;
|
||||||
text-align: start;
|
text-align: start;
|
||||||
padding-left: 0.2rem;
|
padding-left: 0.2rem;
|
||||||
@ -163,11 +158,17 @@ table td{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.bicolor {
|
.bicolor {
|
||||||
background: linear-gradient( to right, #00b5fc 0%, #00b5fc 45%, #000000 55%, #000000 100%);
|
background: linear-gradient(
|
||||||
|
to right,
|
||||||
|
#00b5fc 0%,
|
||||||
|
#00b5fc 45%,
|
||||||
|
#000000 55%,
|
||||||
|
#000000 100%
|
||||||
|
);
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.cmyk {
|
.cmyk {
|
||||||
background-image: url('/themes/vuexy/img/safekat/presupuestos/cmyk.png');
|
background-image: url("/themes/vuexy/img/safekat/presupuestos/cmyk.png");
|
||||||
background-size: 110px;
|
background-size: 110px;
|
||||||
color: white;
|
color: white;
|
||||||
text-shadow: 0px 0px 2px black;
|
text-shadow: 0px 0px 2px black;
|
||||||
@ -178,5 +179,14 @@ table td{
|
|||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
.footer {
|
.footer {
|
||||||
font-size : 10px
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
.bg-encuadernacion {
|
||||||
|
background-color: #bbd8a3;
|
||||||
|
}
|
||||||
|
.encuadernacion th {
|
||||||
|
color: green;
|
||||||
|
}
|
||||||
|
.cell-50 {
|
||||||
|
width: 50px;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user