Skip to content

Commit

Permalink
v0.1-alpha.3
Browse files Browse the repository at this point in the history
- Financial.ToOfx : Exporte les mouvements bancaires d'un élément au
format OFX
- Financial.ToQif : Exporte les données du portefeuille au format OFX
  • Loading branch information
pantaflex44 committed Jul 9, 2021
1 parent 8600d2f commit 8c64946
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 145 deletions.
2 changes: 1 addition & 1 deletion Kotlib.test/Kotlib_452.test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<TargetFrameworkProfile />
<NoWin32Manifest>False</NoWin32Manifest>
<ReleaseVersion>v0.1-alpha.1</ReleaseVersion>
<ReleaseVersion>v0.1-alpha.3</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<PlatformTarget>x86</PlatformTarget>
Expand Down
15 changes: 13 additions & 2 deletions Kotlib.test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,16 +277,27 @@ public static void Main(string[] args)

Console.WriteLine();
Console.WriteLine("Exportation des mouvements de tous les éléments bancaires au format CSV:");
var csvs = fi2.Accounts.Export2CSV(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fi2.Accounts.Select(a => a.Id).ToList(), DateTime.MinValue, DateTime.MaxValue);
var csvs = fi2.ToCSV(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fi2.Accounts.Select(a => a.Id).ToList(), DateTime.MinValue, DateTime.MaxValue);
foreach(var csv in csvs)
Console.WriteLine("- {0} : {1}", fi2.Accounts.GetById(csv.Item1).Name, csv.Item2);

Console.WriteLine();
Console.WriteLine("Exportation des mouvements de tous les éléments bancaires au format HTML:");
var htmls = fi2.Export2Html(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fi2.Accounts.Select(a => a.Id).ToList(), DateTime.MinValue, DateTime.MaxValue);
var htmls = fi2.ToHtml(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fi2.Accounts.Select(a => a.Id).ToList(), DateTime.MinValue, DateTime.MaxValue);
foreach (KeyValuePair<Guid, string> html in htmls)
Console.WriteLine("- {0} : {1}", fi2.Accounts.GetById(html.Key).Name, html.Value);

Console.WriteLine();
Console.WriteLine("Exportation des mouvements de tous les éléments bancaires au format OFX:");
var ofxs = fi2.ToOfx(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fi2.Accounts.Select(a => a.Id).ToList(), DateTime.MinValue, DateTime.MaxValue);
foreach (KeyValuePair<Guid, string> ofx in ofxs)
Console.WriteLine("- {0} : {1}", fi2.Accounts.GetById(ofx.Key).Name, ofx.Value);

Console.WriteLine();
Console.WriteLine("Exportation des mouvements de tous les éléments bancaires au format QIF:");
var qif = fi2.ToQif(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), fi2.Accounts.Select(a => a.Id).ToList(), DateTime.MinValue, DateTime.MaxValue);
Console.WriteLine("- {0}", qif);

Console.ReadLine();
}

Expand Down
Loading

0 comments on commit 8c64946

Please sign in to comment.