mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-10 20:56:50 +00:00
change the pdf filenames
This commit is contained in:
parent
873e957078
commit
83f2490870
1 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ func handleCreateInvoicePdf(bs *booking.Service, ps *pdf.PdfService, hc *config.
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return c.Attachment("tmp.pdf", "tmp.pdf")
|
||||
return c.Attachment("tmp.pdf", fmt.Sprintf("VFNI-%s.pdf", b.InvoiceNumber(hc)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -65,6 +65,6 @@ func handleCreateReportPdf(bs *booking.Service, ps *pdf.PdfService) echo.Handler
|
|||
return err
|
||||
}
|
||||
|
||||
return c.Attachment("tmp.pdf", "tmp.pdf")
|
||||
return c.Attachment("tmp.pdf", fmt.Sprintf("VF-%02d-report.pdf", month))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue