diff --git a/Pages/Portfolio-Review.razor b/Pages/Portfolio-Review.razor index 95e8ee6..5ad2d81 100644 --- a/Pages/Portfolio-Review.razor +++ b/Pages/Portfolio-Review.razor @@ -650,7 +650,6 @@ Portfolio Review@(stepPath==null?"":": "+stepPath.Replace('-',' ')) - bogle.tool - at
diff --git a/Pages/Portfolio.razor b/Pages/Portfolio.razor index 95d1b96..35cbe8a 100644 --- a/Pages/Portfolio.razor +++ b/Pages/Portfolio.razor @@ -155,19 +155,21 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too - - - - + + + + + @foreach (var account in familyData.Accounts) { @foreach (var investment in account.Investments) { - - - - - + + + + + + } } @@ -500,7 +502,6 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too - at
@@ -765,6 +766,14 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too { return String.Format("${0:#,0.##}", amount); } + public string formatDoubleTwoDecimal(double? amount) + { + return String.Format("{0:#,0.00}", amount); + } + public string formatDoubleFourDecimal(double? amount) + { + return String.Format("{0:#,0.0000}", amount); + } public string formatMoneyThousands(double? amount) { if (amount == null) return ""; diff --git a/Shared/Models/FamilyData/Importer.cs b/Shared/Models/FamilyData/Importer.cs index 83ce812..b861d6d 100644 --- a/Shared/Models/FamilyData/Importer.cs +++ b/Shared/Models/FamilyData/Importer.cs @@ -204,7 +204,7 @@ public static async Task> ImportCSV(string[] lines, IList fu { newAccount = new() { Custodian = "Fidelity", - Note = "*"+ accountNumber.Substring(accountNumber.Length-4,4) + " " + accountName + Note = "*"+ accountNumber.Substring(accountNumber.Length-4,4) }; newAccount.GuessAccountType(); importedAccounts.Add(newAccount);
AccountTicker$ / shareSharesValueTypeTicker$ / shareShares$ Value
@((MarkupString)((account.Identifier != null ? ""+account.Identifier+" " : "") + account.AccountType + (account.Custodian != null ? " at " + account.Custodian : "")))@investment.Ticker@investment.Price@investment.Shares@investment.Value@((account.Custodian != null ? account.Custodian + " ": "")+ account.Note)@((MarkupString)((account.Identifier != null ? ""+account.Identifier+" " : "") + account.AccountType))@investment.Ticker@formatDoubleTwoDecimal(investment.Price)@formatDoubleFourDecimal(investment.Shares)@formatDoubleTwoDecimal(investment.Value)