diff --git a/Site5/Pages/v5/Ledgers/Csv-BalanceData.aspx.cs b/Site5/Pages/v5/Ledgers/Csv-BalanceData.aspx.cs index fb8aaad4..c257a210 100644 --- a/Site5/Pages/v5/Ledgers/Csv-BalanceData.aspx.cs +++ b/Site5/Pages/v5/Ledgers/Csv-BalanceData.aspx.cs @@ -4,6 +4,7 @@ using System.Globalization; using Resources.Pages; using Swarmops.Common.Enums; using Swarmops.Logic.Financial; +using Swarmops.Logic.Structure; public partial class Pages_v5_Ledgers_Csv_BalanceData : DataV5Base { @@ -28,7 +29,7 @@ public partial class Pages_v5_Ledgers_Csv_BalanceData : DataV5Base Response.ClearHeaders(); Response.ContentType = "text/plain"; Response.AppendHeader ("Content-Disposition", - "attachment;filename=" + Ledgers.BalanceSheet_DownloadFileName + + "attachment;filename=" + CurrentOrganization.Name.Replace (" ","") + "-" + Ledgers.BalanceSheet_DownloadFileName + this._year.ToString (CultureInfo.InvariantCulture) + "-" + DateTime.Today.ToString ("yyyyMMdd") + ".csv"); Response.Output.WriteLine ("\"{0}\",\"{1}\",\"{2}\",\"{3}\",\"{4}\",\"{5}\",\"{6}\"", diff --git a/Site5/Pages/v5/Ledgers/Csv-ProfitLossData.aspx.cs b/Site5/Pages/v5/Ledgers/Csv-ProfitLossData.aspx.cs index c2e72895..9779a00a 100644 --- a/Site5/Pages/v5/Ledgers/Csv-ProfitLossData.aspx.cs +++ b/Site5/Pages/v5/Ledgers/Csv-ProfitLossData.aspx.cs @@ -28,7 +28,7 @@ public partial class Pages_v5_Ledgers_Csv_ProfitLossData : DataV5Base Response.ClearHeaders(); Response.ContentType = "text/plain"; Response.AppendHeader ("Content-Disposition", - "attachment;filename=" + Ledgers.ProfitLossStatement_DownloadFileName + + "attachment;filename=" + CurrentOrganization.Name.Replace(" ", "") + "-" + Ledgers.ProfitLossStatement_DownloadFileName + this._year.ToString (CultureInfo.InvariantCulture) + "-" + DateTime.Today.ToString ("yyyyMMdd") + ".csv"); if (this._year == DateTime.Today.Year)