diff --git a/Site/Controls/v5/Base/DateTextBox.ascx b/Site/Controls/v5/Base/DateTextBox.ascx index 7b1debaf..050ac237 100644 --- a/Site/Controls/v5/Base/DateTextBox.ascx +++ b/Site/Controls/v5/Base/DateTextBox.ascx @@ -35,22 +35,21 @@ var dateText = $('#<%=this.ClientID%>_TextInput').val(); var jsonData = {}; - jsonData.input = dataText; + jsonData.input = dateText; - if (currencyText.trim().indexOf(' ') >= 0) { - SwarmopsJS.ajaxCall('/Automation/Formatting.aspx/InterpretDateString', - jsonData, - function(data) { - if (data.Success) { - $('#<%=this.ClientID%>_TextInput').val(data.PresentedValue); - $('#<%=this.ClientID%>_InterpretedDate').val(data.InterpretedValue); - } else { - $('#<%=this.ClientID%>_TextInput').val(''); - $('#<%=this.ClientID%>_InterpretedDate').val(''); - $('#<%=this.TextInput.ClientID%>').focus(); - } - }); - } + SwarmopsJS.ajaxCall('/Automation/Formatting.aspx/InterpretDateString', + jsonData, + function(data) { + if (data.Success) { + $('#<%=this.ClientID%>_TextInput').val(data.PresentedValue); + $('#<%=this.ClientID%>_InterpretedDate').val(data.InterpretedValue); + } else { + $('#<%=this.ClientID%>_TextInput').val(''); + $('#<%=this.ClientID%>_InterpretedDate').val(''); + $('#<%=this.TextInput.ClientID%>').focus(); + } + }); + }); diff --git a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs index dbfc1b0d..326ac72a 100644 --- a/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs +++ b/Site/Pages/v5/Financial/CreateInboundInvoice.aspx.cs @@ -124,7 +124,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial this.LabelPurpose.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_Description"); this.LabelBudget.Text = LocalizedStrings.Get(LocDomain.Global, "Financial_Budget"); this.LabelHeaderBankDetails.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_HeaderPaymentDetails"); - this.LabelHeaderImageFiles.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "Financial.CreateInboundInvoice_HeaderInvoiceImage"); + this.LabelHeaderImageFiles.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_HeaderInvoiceImage"); this.LabelImageFiles.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_UploadInvoiceImage"); this.LabelReference.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_Reference"); this.LabelAccount.Text = LocalizedStrings.Get(LocDomain.PagesFinancial, "CreateInboundInvoice_SupplierAccount");