Dumbfixes

This commit is contained in:
Rick Falkvinge
2021-07-07 14:30:55 +02:00
parent e6b567edde
commit e09c5f625c
2 changed files with 15 additions and 16 deletions
+14 -15
View File
@@ -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();
}
});
});
@@ -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");