diff --git a/Site/App_GlobalResources/Pages.Financial.designer.cs b/Site/App_GlobalResources/Pages.Financial.designer.cs index 65fc9823..052ced59 100644 --- a/Site/App_GlobalResources/Pages.Financial.designer.cs +++ b/Site/App_GlobalResources/Pages.Financial.designer.cs @@ -870,6 +870,42 @@ namespace Resources.Pages { } } + /// + /// Looks up a localized string similar to Upload Expensify CSV. + /// + internal static string FileExpenseClaim_Expensify_CsvUploadDescription { + get { + return ResourceManager.GetString("FileExpenseClaim_Expensify_CsvUploadDescription", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to If you have many expense reports, you can gather them with Expensify and upload an Expensify CSV report here (which you obtain from at Expensify under Report, Export, as CSV). Swarmops will use Expensify to fetch all the individual receipts and log them as separate expenses for proper accounting.. + /// + internal static string FileExpenseClaim_Expensify_InstructionsBasic { + get { + return ResourceManager.GetString("FileExpenseClaim_Expensify_InstructionsBasic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to In order for this to work, since {0} reports VAT to the tax authorities, you'll need to modify the default Expensify CSV profile to include the VAT, which the default doesn't. Expensify's help pages has more on how to do this and if you're using Expensify on a team basis, your Expensify policy should already have a VAT-enabled CSV export profile.. + /// + internal static string FileExpenseClaim_Expensify_InstructionsNeedVat { + get { + return ResourceManager.GetString("FileExpenseClaim_Expensify_InstructionsNeedVat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Based on the organization's settings, the "Default CSV" profile in Expensify should be good to go.. + /// + internal static string FileExpenseClaim_Expensify_InstructionsNothingAdvanced { + get { + return ResourceManager.GetString("FileExpenseClaim_Expensify_InstructionsNothingAdvanced", resourceCulture); + } + } + /// /// Looks up a localized string similar to Your Bank Details. /// diff --git a/Site/App_GlobalResources/Pages.Financial.resx b/Site/App_GlobalResources/Pages.Financial.resx index 415f43de..3c199db9 100644 --- a/Site/App_GlobalResources/Pages.Financial.resx +++ b/Site/App_GlobalResources/Pages.Financial.resx @@ -667,6 +667,19 @@ List Outbound Invoices + + Upload Expensify CSV + + + If you have many expense reports, you can gather them with Expensify and upload an Expensify CSV report here (which you obtain from at Expensify under Report, Export, as CSV). Swarmops will use Expensify to fetch all the individual receipts and log them as separate expenses for proper accounting. + + + In order for this to work, since {0} reports VAT to the tax authorities, you'll need to modify the default Expensify CSV profile to include the VAT, which the default doesn't. Expensify's help pages has more on how to do this and if you're using Expensify on a team basis, your Expensify policy should already have a VAT-enabled CSV export profile. + {0} is the organization name. + + + Based on the organization's settings, the "Default CSV" profile in Expensify should be good to go. + Upload Expensify Report For Reimbursement diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx b/Site/Pages/v5/Financial/FileExpenseClaim.aspx index 128c3f04..79b472e4 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx @@ -137,6 +137,33 @@

+ +
+

+

+
+ +
+

+
+ +
+
+ + + +
+ +
+
+ + +
diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs index f9bcbdb7..7068a45b 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.cs @@ -142,6 +142,21 @@ namespace Swarmops.Frontend.Pages.v5.Financial /* Expensify tab */ this.LabelExpensifyUploadHeader.Text = Resources.Pages.Financial.FileExpenseClaim_Title_Expensify; + this.LabelExpensifyCsv.Text = Resources.Pages.Financial.FileExpenseClaim_Expensify_CsvUploadDescription; + this.LabelExpensifyInstructions1.Text = + Resources.Pages.Financial.FileExpenseClaim_Expensify_InstructionsBasic; + this.ButtonExpensifyUpload.Text = Resources.Global.Global_UploadFile; + + if (CurrentOrganization.VatEnabled) + { + this.LabelExpensifyInstructions2.Text = + String.Format(Resources.Pages.Financial.FileExpenseClaim_Expensify_InstructionsNeedVat, CurrentOrganization.Name); + } + else + { + this.LabelExpensifyInstructions2.Text = + Resources.Pages.Financial.FileExpenseClaim_Expensify_InstructionsNothingAdvanced; + } } diff --git a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs index 42911d2a..e843da06 100644 --- a/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs +++ b/Site/Pages/v5/Financial/FileExpenseClaim.aspx.designer.cs @@ -227,5 +227,68 @@ namespace Swarmops.Frontend.Pages.v5.Financial { /// To modify move field declaration from designer file to code-behind file. /// protected global::System.Web.UI.WebControls.Label LabelExpensifyUploadHeader; + + /// + /// LabelExpensifyInstructions1 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelExpensifyInstructions1; + + /// + /// LabelExpensifyInstructions2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelExpensifyInstructions2; + + /// + /// LabelUploadAnotherFileHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelUploadAnotherFileHeader; + + /// + /// UploadExpensify control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::Swarmops.Controls.Base.FileUpload UploadExpensify; + + /// + /// ButtonExpensifyUpload control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button ButtonExpensifyUpload; + + /// + /// LabelExpensifyCsv control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelExpensifyCsv; + + /// + /// LabelProcessing control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelProcessing; } }