Commit 88660eea by Juan

Agrego sogundo repurte

1 parent 57e9a4c3
......@@ -165,7 +165,18 @@ function calcularResultadoSub(num) {
}
document.getElementById('boton_pdf_maha_reporte2').addEventListener('click', function() {
document.getElementById('boton_pdf_maha_reporte2').addEventListener('click',reporteLinea1);
document.getElementById('boton_pdf_maha_reporte').addEventListener('click',reporteLinea2);
function reporteLinea1() {
generarReporteTemplate('/home/administrador/repo_laika_hgt/uploads/Reporte MAHA Vertical105_V02.docx')
}
function reporteLinea2() {
generarReporteTemplate('/home/administrador/repo_laika_hgt/uploads/Reporte_MAHA_V04.docx')
}
function generarReporteTemplate (template) {
//REPORTE VIA CARBONE
var solicitud = {
......@@ -236,7 +247,7 @@ document.getElementById('boton_pdf_maha_reporte2').addEventListener('click', fun
var datos = {
solicitud: solicitud,
template: '/home/administrador/repo_laika_hgt/uploads/Reporte MAHA Vertical105_V02.docx',
template: template,
salida: 'test_maha_2.pdf',
'convert_pdf': true
};
......@@ -258,4 +269,4 @@ document.getElementById('boton_pdf_maha_reporte2').addEventListener('click', fun
.catch(error => {
console.error('Error:', error);
});
});
}
......@@ -132,13 +132,11 @@
</div>
<div class="PDFButtonContainerFixed">
<!--
<button class="PDFButton" id="boton_pdf_maha_reporte">
Linea 1
</button>
-->
<button class="PDFButton" id="boton_pdf_maha_reporte2">
Linea 1
Linea 2
</button>
<!--
<button class="PDFButton" onclick=
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!