Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-06-19 23:17:52 +03:00
parent 5de8f9e918
commit fee3b13122
2 changed files with 63 additions and 25 deletions

View File

@@ -517,7 +517,7 @@ func ExportProductPriceListPDFHandler(pg *sql.DB) http.HandlerFunc {
now := time.Now()
w.Header().Set("Content-Type", "application/pdf")
w.Header().Set("Content-Disposition", fmt.Sprintf("inline; filename=%q", fmt.Sprintf("baggi_guncel_fiyat_listesi_%s.pdf", now.Format("20060102"))))
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%q", fmt.Sprintf("Fiyat_Listesi-%s.pdf", now.Format("20060102-1504"))))
w.WriteHeader(http.StatusOK)
_, _ = w.Write(buf.Bytes())
}