diff --git a/NickvisionMoney.GNOME/Program.cs b/NickvisionMoney.GNOME/Program.cs index 9d4a62fd..6d07b65b 100644 --- a/NickvisionMoney.GNOME/Program.cs +++ b/NickvisionMoney.GNOME/Program.cs @@ -46,7 +46,8 @@ public Program(string[] args) * Fixed an issue that caused sort to behave inconsistently * Fixed an issue where dragging and dropping an account file was not working * Fixed an issue where help documentation was not showing in-app - * Fixed calendar not showing marks for transactions after pressing the ""Today"" button + * Fixed an issue where some ofx files could not be imported + * Fixed an issue where the calendar was not showing marked days after pressing the ""Today"" button * Added more logging to help debug issues * Updated and added translations (Thanks to everyone on Weblate)!"; _application.OnActivate += OnActivate; diff --git a/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in b/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in index 87381fdc..4d9515b8 100644 --- a/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in +++ b/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in @@ -52,8 +52,9 @@

- Fixed an issue where the generated ids of new transactions were incorrect

- Fixed an issue that caused sort to behave inconsistently

- Fixed an issue where dragging and dropping an account file was not working

-

- Fixed calendar not showing marks for transactions after pressing the "Today" button

- Fixed an issue where help documentation was not showing in-app

+

- Fixed an issue where some ofx files could not be imported

+

- Fixed an issue where the calendar was not showing marked days after pressing the "Today" button

- Added more logging to help debug issues

- Updated translations (Thanks to everyone on Weblate)!

diff --git a/NickvisionMoney.Shared/Models/Account.cs b/NickvisionMoney.Shared/Models/Account.cs index 6d333901..55f7daee 100644 --- a/NickvisionMoney.Shared/Models/Account.cs +++ b/NickvisionMoney.Shared/Models/Account.cs @@ -1422,6 +1422,29 @@ private async Task ImportFromOFXAsync(string path, string defaultT OFXDocument? ofx = null; //Check For Security var ofxString = File.ReadAllText(path); + if (!ofxString.Contains("SIGNONMSGSRQV1") && !ofxString.Contains("SIGNONMSGSRSV1")) + { + ofxString = ofxString.Insert(ofxString.IndexOf("") + 5, @" + + + + 0 + INFO + OK + + 20230302112111[-8:PST] + ENG + +"); + } + if(!ofxString.Contains("LEDGERBAL")) + { + ofxString = ofxString.Insert(ofxString.IndexOf("") + 15, @" + + 0.00 + 20230302112111[-8:PST] +"); + } if (ofxString.Contains("SECURITY:TYPE1")) { ofxString = ofxString.Replace("SECURITY:TYPE1", "SECURITY:NONE");