feature exchange rate update automation

Automated downloading exchange rates from HMRC and updating the database. Added function call to the console and form applications.

Also added a form to show the console output in form application.
This commit is contained in:
Bobbie Hodgetts
2025-06-09 20:56:26 +01:00
committed by GitHub
parent 8e7cd00b74
commit ea0a52b2a0
25 changed files with 1095 additions and 179 deletions

View File

@@ -1,9 +1,12 @@
using System;
using bnhtrade.Core.Data.Database.Account;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms.Design;
using System.Xml;
using System.Xml.Linq;
namespace bnhtrade.Core.Test.Account
{
@@ -11,7 +14,13 @@ namespace bnhtrade.Core.Test.Account
{
public Account()
{
Journal();
UpdateHmrcExchageRates();
}
public void UpdateHmrcExchageRates()
{
var logic = new bnhtrade.Core.Logic.Account.Currency();
logic.UpdateHmrcExchageRates();
}
public void PurchaseInvoice()