Private
Public Access
1
0

Don't pre-populate original balance from current balance in loan defaults

The current account balance is not the origination balance, so defaulting
it into the Original Balance field is misleading. Leave it at 0 so users
enter the actual loan origination amount.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Catherine Renelle
2026-02-14 16:39:23 -05:00
parent 2ae12770cf
commit 08a0bcda3d
+1 -2
View File
@@ -162,7 +162,6 @@ public class LoanService : ILoanService
.FirstOrDefaultAsync(a => a.Id == accountId && a.UserId == userId) .FirstOrDefaultAsync(a => a.Id == accountId && a.UserId == userId)
?? throw new KeyNotFoundException("Account not found"); ?? throw new KeyNotFoundException("Account not found");
var originalBalance = Math.Abs(account.Balance);
var interestRate = account.InterestRate ?? 0; var interestRate = account.InterestRate ?? 0;
var hasSyncData = account.LinkedAccounts.Any() && (account.InterestRate.HasValue || account.Balance != 0); var hasSyncData = account.LinkedAccounts.Any() && (account.InterestRate.HasValue || account.Balance != 0);
@@ -174,7 +173,7 @@ public class LoanService : ILoanService
_ => 360 _ => 360
}; };
return new LoanDefaultsResponse(originalBalance, interestRate, termMonths, hasSyncData); return new LoanDefaultsResponse(0, interestRate, termMonths, hasSyncData);
} }
private static List<AmortizationEntry> GenerateAmortizationSchedule(LoanDetail loan) private static List<AmortizationEntry> GenerateAmortizationSchedule(LoanDetail loan)