From d707c2360f13e463be49293af59c2e44248ca31e Mon Sep 17 00:00:00 2001 From: David Arranz Date: Tue, 18 Feb 2025 16:22:00 +0100 Subject: [PATCH] Error al generar el PDF, se genera al final una hoja en blanco #4 --- server/package.json | 2 +- .../reporter/ReportQuote.reporter.ts | 2 +- .../reporter/templates/quote/template.hbs | 25 +++---------------- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/server/package.json b/server/package.json index e269365..679586b 100644 --- a/server/package.json +++ b/server/package.json @@ -1,7 +1,7 @@ { "name": "@uecko-presupuestador/server", "private": true, - "version": "1.1.1", + "version": "1.1.2", "author": "Rodax Software ", "main": "./src/index.ts", "scripts": { diff --git a/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/ReportQuote.reporter.ts b/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/ReportQuote.reporter.ts index 645ea18..43e0f91 100644 --- a/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/ReportQuote.reporter.ts +++ b/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/ReportQuote.reporter.ts @@ -47,7 +47,7 @@ export const ReportQuotePresenter: IReportQuoteReporter = { await navigationPromise; const reportPDF = await report.pdfPage(page, { - format: "a4", + format: "A4", margin: { bottom: "10mm", left: "10mm", diff --git a/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/template.hbs b/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/template.hbs index 166c2f9..a14b7fe 100644 --- a/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/template.hbs +++ b/server/src/contexts/sales/infrastructure/express/controllers/quotes/reportQuote/reporter/templates/quote/template.hbs @@ -6,19 +6,6 @@ referrerpolicy="no-referrer" /> Presupuesto #{{id}}