File name changes
This commit is contained in:
parent
668a214b64
commit
2a3bac2d69
@ -17,7 +17,7 @@ const list = asyncHandler(async (req, res) => {
|
||||
const exportCsv = asyncHandler(async (req, res) => {
|
||||
const csv = await service.exportGrns(req.query);
|
||||
res.setHeader('Content-Type', 'text/csv; charset=utf-8');
|
||||
res.setHeader('Content-Disposition', 'attachment; filename="grn-export.csv"');
|
||||
res.setHeader('Content-Disposition', 'attachment; filename="pr-export.csv"');
|
||||
res.send(csv);
|
||||
});
|
||||
|
||||
|
||||
@ -403,7 +403,7 @@ const generateGrnHtml = (inputData = getDummyGrnData()) => {
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Goods Receipt Note ${escapeHtml(grn.grn_number || '')}</title>
|
||||
<title>Purchase Receipt ${escapeHtml(grn.grn_number || '')}</title>
|
||||
<style>${sharedDocumentStyles()}</style>
|
||||
</head>
|
||||
<body>
|
||||
@ -424,7 +424,7 @@ const generateGrnHtml = (inputData = getDummyGrnData()) => {
|
||||
</div>
|
||||
</div>
|
||||
<div class="title-block">
|
||||
<h2 class="doc-title">Goods Receipt Note</h2>
|
||||
<h2 class="doc-title">Purchase Receipt</h2>
|
||||
<div class="doc-number">${escapeHtml(grn.grn_number || '-')}</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -533,7 +533,7 @@ const generateGrnHtml = (inputData = getDummyGrnData()) => {
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
Generated ${escapeHtml(generatedAt)} · This is a system-generated goods receipt note and does not require a physical stamp.
|
||||
Generated ${escapeHtml(generatedAt)} · This is a system-generated purchase receipt and does not require a physical stamp.
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user