diff --git a/StockHistory/Services/SqlStockEquityServices.cs b/StockHistory/Services/SglStockEquityServices.cs similarity index 100% rename from StockHistory/Services/SqlStockEquityServices.cs rename to StockHistory/Services/SglStockEquityServices.cs diff --git a/StockHistory/Services/StockEquityServices.cs b/StockHistory/Services/StockEquityServices.cs index f77be63..ab66359 100644 --- a/StockHistory/Services/StockEquityServices.cs +++ b/StockHistory/Services/StockEquityServices.cs @@ -81,7 +81,7 @@ public class StockEquityServices : IStockEquityServices }; _dbContext.Stocks.Add(equity); await _dbContext.SaveChangesAsync(); - Debug.WriteLine($"Köpnotering: {equity.StockCode}, {equity.Bought}, {equity.BoughtPrice}, {equity.Quantity}, {equity.BoughtPrice * equity.Quantity}"); + Debug.WriteLine($"Köpnotering: {equity.StockCode} | {equity.Bought} | {equity.BoughtPrice} | {equity.Quantity} | {equity.BoughtPrice * equity.Quantity}"); } // Kontrollera om TransactionType är en säljnotering @@ -111,7 +111,7 @@ public class StockEquityServices : IStockEquityServices soldQuant -= eq.Quantity; _dbContext.Stocks.Update(eq); await _dbContext.SaveChangesAsync(); - Debug.WriteLine($"Säljnotering: {eq.StockCode}, {eq.Sold}, {eq.SoldPrice}, {eq.SoldQuant}"); + Debug.WriteLine($"Säljnotering: {eq.StockCode} | {eq.Sold} | {eq.SoldPrice} | {eq.SoldQuant}"); } else { @@ -127,11 +127,11 @@ public class StockEquityServices : IStockEquityServices }; _dbContext.Stocks.Add(splitEquity); await _dbContext.SaveChangesAsync(); - Debug.WriteLine($"Säljnotering (split): {splitEquity.StockCode}, {splitEquity.Bought},{splitEquity.BoughtPrice},{splitEquity.SoldQuant}, {splitEquity.Sold}, {splitEquity.SoldPrice},{splitEquity.SoldQuant}"); + Debug.WriteLine($"Säljnotering (split): {splitEquity.StockCode} | {splitEquity.Bought} | {splitEquity.BoughtPrice} | {splitEquity.SoldQuant} | {splitEquity.Sold} | {splitEquity.SoldPrice} | {splitEquity.SoldQuant}"); eq.Quantity -= soldQuant; _dbContext.Stocks.Update(eq); await _dbContext.SaveChangesAsync(); - Debug.WriteLine($"Säljnotering (split): {eq.StockCode}, {eq.Bought},{eq.BoughtPrice},{eq.SoldQuant}, {eq.Sold}, {eq.SoldPrice},{eq.SoldQuant}"); + Debug.WriteLine($"Säljnotering (split): {eq.StockCode} | {eq.Bought} | {eq.BoughtPrice} | {eq.SoldQuant} | {eq.Sold} | {eq.SoldPrice} | {eq.SoldQuant}"); soldQuant = 0; } } diff --git a/StockHistory/frmStockHistoryAnalyse.Designer.cs b/StockHistory/frmStockHistoryAnalyse.Designer.cs index 8035c60..e138903 100644 --- a/StockHistory/frmStockHistoryAnalyse.Designer.cs +++ b/StockHistory/frmStockHistoryAnalyse.Designer.cs @@ -128,13 +128,15 @@ // chValue // chValue.Text = "Total"; + chValue.Width = 90; // // lblTotalValue // lblTotalValue.AutoSize = true; - lblTotalValue.Location = new Point(345, 295); + lblTotalValue.Font = new Font("Segoe UI", 12F, FontStyle.Bold); + lblTotalValue.Location = new Point(513, 269); lblTotalValue.Name = "lblTotalValue"; - lblTotalValue.Size = new Size(16, 15); + lblTotalValue.Size = new Size(22, 21); lblTotalValue.TabIndex = 10; lblTotalValue.Text = "..."; // diff --git a/StockHistory/frmStockHistoryInit.cs b/StockHistory/frmStockHistoryInit.cs index 5a493b8..0694899 100644 --- a/StockHistory/frmStockHistoryInit.cs +++ b/StockHistory/frmStockHistoryInit.cs @@ -233,6 +233,11 @@ public partial class frmStockHistoryInit : Form trans.TransactionType = "SÄLJ"; break; } + if (word.ToUpper().Contains("FÖRSÄLJNING")) + { + trans.TransactionType = "SÄLJ"; + break; + } } } if (line.StartsWith("Genomsnittlig"))