From 856692b66c0349a509dc305d2f4a4dd509dac2ed Mon Sep 17 00:00:00 2001 From: seb Date: Sat, 17 Oct 2026 21:37:36 +0200 Subject: [PATCH] u --- src/services/manifestPdf.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/services/manifestPdf.js b/src/services/manifestPdf.js index 5c435b0..df174ea 100644 --- a/src/services/manifestPdf.js +++ b/src/services/manifestPdf.js @@ -55,7 +55,7 @@ async function resolveThumbPng(store, googleAuthId, picHash, smallthumbbinary) { if (smallthumbbinary) { try { return await sharp(smallthumbbinary).png().toBuffer(); - } catch (_) {} + } catch (_) { } } if (picHash) { try { @@ -63,7 +63,7 @@ async function resolveThumbPng(store, googleAuthId, picHash, smallthumbbinary) { if (thumb?.buffer) { return await sharp(thumb.buffer).png().toBuffer(); } - } catch (_) {} + } catch (_) { } } return null; } @@ -130,7 +130,7 @@ const TYPE_CONFIG = { numberPrefix: 'Auftrags-Nr.', showPrices: true, filenamePrefix: 'auftrag', - introText: 'Wir bestätigen dankend die Annahme Ihres Auftrags zu folgenden Positionen:', + introText: '', closingText: 'Vielen Dank für Ihren Auftrag!', defaultSubject: 'Auftragsbestätigung', }, @@ -140,7 +140,7 @@ const TYPE_CONFIG = { showPrices: false, filenamePrefix: 'lieferschein', introText: 'Mit dieser Sendung liefern wir Ihnen folgende Artikel:', - closingText: 'Die Ware bleibt bis zur vollständigen Bezahlung unser Eigentum. Bitte prüfen Sie die Sendung sofort auf Vollständigkeit und eventuelle Transportschäden.', + closingText: '', defaultSubject: 'Lieferschein', }, delivery: { @@ -148,7 +148,7 @@ const TYPE_CONFIG = { numberPrefix: 'Beleg-Nr.', showPrices: false, filenamePrefix: 'wareneingang', - introText: 'Wareneingangsdokumentation zu folgenden Positionen:', + introText: '', closingText: '', defaultSubject: 'Wareneingang', }, @@ -435,7 +435,7 @@ export function generateManifestPdf({ .fillColor('#ffffff'); if (isDelivery) { - + doc.text('Pos', colDeliv.pos, atY + 6, { width: colDeliv.posW, align: 'center' }); doc.text('Bild', colDeliv.thumb, atY + 6, { width: colDeliv.thumbW, align: 'center' }); doc.text('Lief.-SKU', colDeliv.suppSku, atY + 6, { width: colDeliv.suppSkuW }); @@ -600,7 +600,7 @@ export function generateManifestPdf({ if (line.ownSkuBarcode) { try { doc.image(line.ownSkuBarcode, colDeliv.ownSku, y + 12, { width: 88, height: 20 }); - } catch (_) {} + } catch (_) { } } // 6. EAN as barcode @@ -610,7 +610,7 @@ export function generateManifestPdf({ if (line.eanBarcode) { try { doc.image(line.eanBarcode, colDeliv.ean, y + 12, { width: 76, height: 20 }); - } catch (_) {} + } catch (_) { } } } else { doc.font('Helvetica').fontSize(8).fillColor(mutedColor)