update
This commit is contained in:
@@ -361,7 +361,13 @@ export default function BestellungDetail() {
|
||||
: String(bestellung.id);
|
||||
const title = `Bestellung #${kennung}`;
|
||||
|
||||
let curY = addPdfHeader(doc, title, settings, 210);
|
||||
let curY = await addPdfHeader(doc, settings, 210);
|
||||
|
||||
// Document title below header
|
||||
doc.setFontSize(14);
|
||||
doc.setFont('helvetica', 'bold');
|
||||
doc.text(title, 10, curY);
|
||||
curY += 8;
|
||||
|
||||
// Metadata block
|
||||
doc.setFontSize(10);
|
||||
|
||||
@@ -192,7 +192,13 @@ export default function Bestellungen() {
|
||||
let settings;
|
||||
try { settings = await configApi.getPdfSettings(); } catch { settings = { pdf_header: '', pdf_footer: '', pdf_logo: '', pdf_org_name: '' }; }
|
||||
|
||||
const startY = addPdfHeader(doc, 'Bestellungen — Übersicht', settings, 210);
|
||||
let startY = await addPdfHeader(doc, settings, 210);
|
||||
|
||||
// Document title below header
|
||||
doc.setFontSize(14);
|
||||
doc.setFont('helvetica', 'bold');
|
||||
doc.text('Bestellungen — Übersicht', 10, startY);
|
||||
startY += 8;
|
||||
|
||||
const rows = filteredOrders.map((o) => {
|
||||
const brutto = calcBrutto(o);
|
||||
|
||||
@@ -642,7 +642,14 @@ async function generatePdf(
|
||||
const pdfSettings = await fetchPdfSettings();
|
||||
|
||||
// Header
|
||||
const tableStartY = addPdfHeader(doc, `Kalender — ${monthLabel} ${year}`, pdfSettings, 297);
|
||||
let tableStartY = await addPdfHeader(doc, pdfSettings, 297);
|
||||
|
||||
// Document title below header
|
||||
const titleText = `Kalender — ${monthLabel} ${year}`;
|
||||
doc.setFontSize(14);
|
||||
doc.setFont('helvetica', 'bold');
|
||||
doc.text(titleText, 10, tableStartY);
|
||||
tableStartY += 8;
|
||||
|
||||
// Build combined list (same logic as CombinedListView)
|
||||
type ListEntry =
|
||||
|
||||
Reference in New Issue
Block a user