;color:= $colors["papel_cubierta"]["color"] ?>;">
+
;color:= $colors["papel_cubierta"]["color"] ?>;">
= $linea_cubierta?->papel_impresion()->papel_code_ot ?>
-
;color:= $colors["plastificado"]["color"] ?>;">
+
;color:= $colors["plastificado"]["color"] ?>;">
= isset($acabados[0]) ? $acabados[0]->tarifa()->code : "" ?>
$acabado): ?>
@@ -137,7 +139,7 @@ $settings = $session->get('settings');
">
- ;">= $ot->id ?>
+ ;">= $ot->id ?>

@@ -151,32 +153,30 @@ $settings = $session->get('settings');
-
+
- | IDSK |
-
-
- |
+ IDSK |
+ |
- | CLIENTE |
+ CLIENTE |
= $cliente->alias ?>
|
- | TITULO |
+ TITULO |
= $presupuesto->titulo ?>
|
- | ISBN |
+ ISBN |
= $presupuesto->isbn ?> |
- | PEDIDO CLIENTE |
+ PEDIDO |
= $pedido->id ?> |
@@ -184,12 +184,10 @@ $settings = $session->get('settings');
-
imposicion_esquema()): ?>
= $imposicion->imposicion_esquema()->svg_schema ?>
-
@@ -204,21 +202,33 @@ $settings = $session->get('settings');
-
IMP. INTERIOR
+
+
IMP. INTERIOR
+ fecha_impresion): ?>
+
= Time::createFromFormat("Y-m-d H:i:s", $pedido->fecha_impresion)->format('d/m/Y') ?>
+
+
-
-
-
- | = $papel_formato->ancho ?>x= $papel_formato->alto ?> |
-
- 1 |
-
- = $presupuesto->tipo_presupuesto()?->codigo ?? "" ?> |
-
- = number_format($presupuesto->lomo_cubierta, 2, ',', '.') ?> |
-
-
+
+
+
+
+
+
+
+
+ papel_formato_personalizado): ?>
+ | = $presupuesto->papel_formato_ancho ?>x= $presupuesto->papel_formato_alto ?> |
+
+ = $papel_formato->ancho ?>x= $papel_formato->alto ?> |
+
+ 1 |
+ = $presupuesto->tipo_presupuesto()?->codigo ?? "" ?> |
+ = number_format($presupuesto->lomo_cubierta, 2, ',', '.') ?> |
+
+
+
) ?>) |
@@ -251,7 +261,7 @@ $settings = $session->get('settings');
-
@@ -262,7 +272,12 @@ $settings = $session->get('settings');
diff --git a/ci4/app/Views/themes/vuexy/pdfs/orden_trabajo.php b/ci4/app/Views/themes/vuexy/pdfs/orden_trabajo.php index 62271989..065f73b5 100755 --- a/ci4/app/Views/themes/vuexy/pdfs/orden_trabajo.php +++ b/ci4/app/Views/themes/vuexy/pdfs/orden_trabajo.php @@ -48,21 +48,19 @@ $settings = $session->get('settings');
full_path)) : '/assets/img/portada_not_found.png' ?>" />
-
-
= $ot->comment_interior ?> @@ -270,7 +279,7 @@ $settings = $session->get('settings');
$error_message"; } } ?> 0): ?> -
@@ -366,23 +383,26 @@ $settings = $session->get('settings');
= $ot->comment_interior ?> @@ -281,10 +287,10 @@ $settings = $session->get('settings');
$error_message"; } } ?> 0): ?> -
@@ -366,7 +380,12 @@ $settings = $session->get('settings');
= $ot->comment_logistica ?> diff --git a/httpdocs/assets/js/safekat/pages/pdf/otDownload.js b/httpdocs/assets/js/safekat/pages/pdf/otDownload.js index da577046..08335c94 100644 --- a/httpdocs/assets/js/safekat/pages/pdf/otDownload.js +++ b/httpdocs/assets/js/safekat/pages/pdf/otDownload.js @@ -1,11 +1,12 @@ -$(() => { - var opt = { - margin: 2, - filename: $(".pdf-wrapper").data("id") + ".pdf", - image: { type: 'jpeg', quality: 1 }, - html2canvas: { scale: 4 }, - jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' } - }; - let elementToPdf = $('body')[0] - html2pdf().set(opt).from(elementToPdf).save() -}) \ No newline at end of file +// $(() => { +// var opt = { +// margin: 2, +// filename: $(".pdf-wrapper").data("id") + ".pdf", +// image: { type: 'jpeg', quality: 1 }, +// html2canvas: { scale: 4 }, +// jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }, +// pagebreak: { mode: ['avoid-all', 'css', 'legacy'] } +// }; +// let elementToPdf = $('body')[0] +// html2pdf().set(opt).from(elementToPdf).save() +// }) \ No newline at end of file diff --git a/httpdocs/themes/vuexy/css/pdf.ot.css b/httpdocs/themes/vuexy/css/pdf.ot.css index 3058c604..e773c58e 100644 --- a/httpdocs/themes/vuexy/css/pdf.ot.css +++ b/httpdocs/themes/vuexy/css/pdf.ot.css @@ -3,22 +3,23 @@ margin: 0; } @media print { - .page, - { + .page { width: 210mm; height: 297mm; max-width: 210mm; max-height: 297mm; print-color-adjust: exact; } + /* ... the rest of the rules ... */ } -html { +html,body { font-family: Arial, sans-serif; width: 210mm; height: 297mm; max-width: 210mm; - font-size: 8px; + width: 100%; + font-size: 14px; max-height: 297mm; background-color: white; } @@ -26,7 +27,8 @@ html { .page { border: 0px solid; padding: 10px; - margin : 10px; + margin: 10px; + width: 100%; max-width: 210mm; max-height: 297mm; background-color: white; @@ -37,11 +39,11 @@ html { border: 2px solid; } .square { + height : 75px; align-items: center; align-content: center; justify-content: center; font-weight: bold; - font-size: 14px; } .esquema { } @@ -92,6 +94,7 @@ html { } .section-title { font-weight: bold; + font-size: 1.2em; margin-bottom: 4px; } .cubierta { @@ -106,37 +109,39 @@ html { .comments { color: #555; font-style: italic; - font-size : 12px; + font-size: 12px; margin-top: 0.2rem; } .comment-content { width: 100%; - margin-left : 0.2rem; + margin-left: 0.2rem; font-style: normal; - color : black; + color: black; font-size: 10px; } table { width: 100%; margin-bottom: 2px; - font-size: 10px; + font-size: 1.2em; } -th, td { - border: 0.01px solid black; + +th, +td { + border-width : 1px; + border-color : black; } table td { text-align: center; } - table th { font-weight: bold; color: black; text-align: center; } -table td { - font-weight: bold; +.al{ + text-align:left; } .t-header { @@ -149,7 +154,7 @@ table td { padding-left: 0.2rem; } .t-row { - font-size: 8px; + font-size: 14px; width: 100%; } .bicolor { @@ -173,9 +178,7 @@ table td { background: black; color: white; } -.footer { - font-size: 10px; -} + .bg-encuadernacion { background-color: #bbd8a3; } @@ -185,3 +188,9 @@ table td { .cell-50 { width: 50px; } +.ot-code { + font-size: 4em; +} +.code-title { + font-size: 1.5em; +}