This commit is contained in:
seb
2026-10-17 21:37:36 +02:00
parent 5e9b168e0d
commit 856692b66c

View File

@@ -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)