Actualizar contabilidad.html

This commit is contained in:
2026-03-24 14:58:10 +00:00
parent 8a10bc89b4
commit 92704dcb73

View File

@@ -247,7 +247,7 @@
</div>
<div id="pdf-wrapper" class="hidden">
<div id="pdf-content" class="bg-white text-slate-800 font-sans" style="width: 800px; min-height: 1120px; position: relative; padding: 50px;">
<div id="pdf-content" style="background-color: white; color: #1e293b; font-family: Arial, Helvetica, sans-serif; width: 800px; min-height: 1120px; position: relative; padding: 50px; box-sizing: border-box;">
<div style="display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #e2e8f0; padding-bottom: 30px; margin-bottom: 40px;">
<div style="max-width: 250px; max-height: 100px;">
@@ -268,6 +268,7 @@
<div style="font-size: 14px; color: #64748b; line-height: 1.6;">
<strong>Referencia:</strong> <span id="pdf-budget-id">#PRE-000</span><br>
<strong>Fecha:</strong> <span id="pdf-date">01/01/2026</span><br>
<strong>Validez:</strong> 30 días<br>
</div>
</div>
@@ -287,7 +288,7 @@
<th style="background: #f1f5f9; color: #475569; font-weight: 800; text-transform: uppercase; font-size: 11px; padding: 12px 15px; text-align: left; border-bottom: 2px solid #cbd5e1; border-radius: 8px 0 0 0;">Concepto</th>
<th style="background: #f1f5f9; color: #475569; font-weight: 800; text-transform: uppercase; font-size: 11px; padding: 12px 15px; text-align: center; border-bottom: 2px solid #cbd5e1;">Cant.</th>
<th style="background: #f1f5f9; color: #475569; font-weight: 800; text-transform: uppercase; font-size: 11px; padding: 12px 15px; text-align: right; border-bottom: 2px solid #cbd5e1;">Precio Ud.</th>
<th style="background: #f1f5f9; color: #475569; font-weight: 800; text-transform: uppercase; font-size: 11px; padding: 12px 15px; text-align: right; border-bottom: 2px solid #cbd5e1; border-radius: 0 8px 0 0;">Total</th>
<th style="background: #f1f5f9; color: #475569; font-weight: 800; text-transform: uppercase; font-size: 11px; padding: 12px 15px; text-align: right; border-bottom: 2px solid #cbd5e1; border-radius: 0 8px 0 0;">Subtotal</th>
</tr>
</thead>
<tbody id="pdf-items">
@@ -948,7 +949,7 @@
};
try {
await new Promise(r => setTimeout(r, 300));
await new Promise(r => setTimeout(r, 500)); // Esperamos medio segundo para asegurar fuentes
await html2pdf().set(opt).from(element).save();
showToast("✅ PDF Descargado con éxito");
} catch (error) {