Leaving this feature unfinished for now to focus on EOY
This commit is contained in:
+27
@@ -1132,6 +1132,24 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to The transaction file could not be processed. Is it the right file? For the right bank? Please try again.<br/><br/>If the error persists, try getting a fresh transaction file..
|
||||
/// </summary>
|
||||
internal static string EndOfMonth_Error_Body_BankTransactionFileFormat {
|
||||
get {
|
||||
return ResourceManager.GetString("EndOfMonth_Error_Body_BankTransactionFileFormat", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to FILE COULD NOT BE IMPORTED.
|
||||
/// </summary>
|
||||
internal static string EndOfMonth_Error_Header_BankTransactionFile {
|
||||
get {
|
||||
return ResourceManager.GetString("EndOfMonth_Error_Header_BankTransactionFile", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Autofetch Transaction Data for {0}.
|
||||
/// </summary>
|
||||
@@ -1276,6 +1294,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to PROBLEM WITH TRANSACTION FILE.
|
||||
/// </summary>
|
||||
internal static string EndOfMonth_Warning_Header_BankTransactionFile {
|
||||
get {
|
||||
return ResourceManager.GetString("EndOfMonth_Warning_Header_BankTransactionFile", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Account name.
|
||||
/// </summary>
|
||||
|
||||
@@ -1075,4 +1075,13 @@ This can happen after bitcoin splits (&quot;forks&quot;) or similar even
|
||||
<value>Inspect Bitcoin Cash Hotwallet For</value>
|
||||
<comment>This is followed by a year and month dropdown</comment>
|
||||
</data>
|
||||
<data name="EndOfMonth_Error_Body_BankTransactionFileFormat" xml:space="preserve">
|
||||
<value>The transaction file could not be processed. Is it the right file? For the right bank? Please try again.<br/><br/>If the error persists, try getting a fresh transaction file.</value>
|
||||
</data>
|
||||
<data name="EndOfMonth_Error_Header_BankTransactionFile" xml:space="preserve">
|
||||
<value>FILE COULD NOT BE IMPORTED</value>
|
||||
</data>
|
||||
<data name="EndOfMonth_Warning_Header_BankTransactionFile" xml:space="preserve">
|
||||
<value>PROBLEM WITH TRANSACTION FILE</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -267,6 +267,7 @@
|
||||
}
|
||||
activeUpload = triggeredUpload;
|
||||
triggeredUpload = null;
|
||||
activeUploadId = null; // Supplied from server side on delayed processing
|
||||
|
||||
// switch action icon upload to status icon waiting
|
||||
$('img.action-icon[data-item="' + activeUpload + '"]').hide();
|
||||
@@ -294,10 +295,11 @@
|
||||
if (itemType == "BankTransactionData") {
|
||||
// Show a pretty dialog telling the user that things went to unpretty shit
|
||||
|
||||
alertify.alert("<strong>THIS FILE CANNOT BE PROCESSED</strong><br/><br/>There was an error trying to read the file. Is it really a file of the right type, for the right bank?<br/><br/>Please try again. If the error persists, try getting a fresh transaction file."); // TODO: Localize
|
||||
alertify.alert("<strong>" + localized_errorHeader_transactionFile + "</strong><br/><br/>" + localized_errorBody_transactionFileFormat);
|
||||
}
|
||||
|
||||
activeUpload = null;
|
||||
activeUploadId = null;
|
||||
}
|
||||
|
||||
function clientFinishedUpload() {
|
||||
@@ -317,10 +319,24 @@
|
||||
function(result) {
|
||||
if (result.Success) {
|
||||
|
||||
markItemCompleted(activeUpload);
|
||||
if (result.StillProcessing) {
|
||||
|
||||
activeUpload = null;
|
||||
activeUploadId = result.Identity;
|
||||
|
||||
// CONTINUE HERE
|
||||
|
||||
// Fade out original text, create a progress bar and the word "Processing"
|
||||
|
||||
// Add a processing message updater, check against identity (see Swarmops5.JS)
|
||||
|
||||
// Create a regular callback for progress in case websocket messages fail
|
||||
|
||||
} else {
|
||||
// If we're not still processing, we're done
|
||||
|
||||
markItemCompleted(activeUpload);
|
||||
activeUpload = null;
|
||||
}
|
||||
} else {
|
||||
if (result.DisplayMessage != "ERROR_FILEDATAFORMAT") {
|
||||
alert(result.DisplayMessage); // temporary debug function
|
||||
@@ -339,11 +355,14 @@
|
||||
|
||||
var triggeredUpload = null;
|
||||
var activeUpload = null;
|
||||
var activeUploadId = null;
|
||||
|
||||
var localized_skipNoResponse = SwarmopsJS.unescape('<%=this.Localized_SkipNo%>');
|
||||
var localized_skipYesResponse = SwarmopsJS.unescape('<%=this.Localized_SkipYes%>');
|
||||
var localized_skipPromptBankStatement = SwarmopsJS.unescape('<%=this.Localized_SkipPrompt_BankStatement%>');
|
||||
var localized_skipPromptGeneric = SwarmopsJS.unescape('<%=this.Localized_SkipPrompt_Generic%>');
|
||||
var localized_errorHeader_transactionFile = SwarmopsJS.unescape('<%=this.Localized_Error_Header_TransactionFile%>');
|
||||
var localized_errorBody_transactionFileFormat = SwarmopsJS.unescape('<%=this.Localized_Error_Body_TransactionFileFormat%>');
|
||||
|
||||
var uploadGuid = '<%=this.UploadControl.GuidString%>';
|
||||
|
||||
|
||||
@@ -525,5 +525,15 @@ namespace Swarmops.Frontend.Pages.Ledgers
|
||||
{
|
||||
get { return CommonV5.JavascriptEscape(Resources.Global.Global_SkipNo); }
|
||||
}
|
||||
|
||||
public string Localized_Error_Header_BankTransactionFile
|
||||
{
|
||||
get { return CommonV5.JavascriptEscape(Resources.Pages.Ledgers.EndOfMonth_Error_Header_BankTransactionFile); }
|
||||
}
|
||||
|
||||
public string Localized_Error_Body_BankTransactionFileFormat
|
||||
{
|
||||
get { return CommonV5.JavascriptEscape(Resources.Pages.Ledgers.EndOfMonth_Error_Body_BankTransactionFileFormat); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user