INFORMACIÓN DE PAGO
Para confirmar el presupuesto, por favor realice una transferencia a la siguiente cuenta:
@@ -927,8 +927,8 @@ lucide.createIcons();
let itemsHtml = '';
if (itemsArr.length > 0) {
itemsHtml = itemsArr.map(item => `
-
- | ${item.concept} |
+
+ ${item.concept.replace(/\n/g, ' ')} |
${item.qty} |
${parseFloat(item.price).toFixed(2)} € |
${(item.qty * item.price).toFixed(2)} € |
@@ -978,7 +978,7 @@ lucide.createIcons();
const element = document.getElementById('pdf-content');
const opt = {
- margin: 0,
+ margin: [0.5, 0, 0.5, 0],
filename: `Presupuesto_${budget.quote_ref || budget.id}.pdf`,
image: { type: 'jpeg', quality: 1 },
// 🛑 FIX: Añadimos scrollY: 0 y windowY: 0 para que haga la "foto" clavada arriba