Password Policy/App rename/PM Scheduling Improvements
This commit is contained in:
@@ -76,9 +76,9 @@ function writeDepreciationPdf(res, year, book) {
|
||||
const rows = assetExportRows();
|
||||
const doc = new PDFDocument({ margin: 36, size: 'LETTER' });
|
||||
res.setHeader('Content-Type', 'application/pdf');
|
||||
res.setHeader('Content-Disposition', `attachment; filename="mixedassets-${book}-${year}.pdf"`);
|
||||
res.setHeader('Content-Disposition', `attachment; filename="deprecore-${book}-${year}.pdf"`);
|
||||
doc.pipe(res);
|
||||
doc.fontSize(18).text('MixedAssets Depreciation Report');
|
||||
doc.fontSize(18).text('DepreCore Depreciation Report');
|
||||
doc.fontSize(10).text(`Book: ${book} Year: ${year} Generated: ${new Date().toLocaleString()}`);
|
||||
doc.moveDown();
|
||||
doc.fontSize(9).text('Asset ID', 36, doc.y, { continued: true, width: 80 });
|
||||
|
||||
Reference in New Issue
Block a user