From e2b69b41f4090e004bea8afd288c37444cf9c8d9 Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Sat, 14 Feb 2026 22:35:53 -0500 Subject: [PATCH] Show current month's payment in amortization schedule Filter from start of current month instead of today so the current month's entry is always visible even mid-month. Co-Authored-By: Claude Opus 4.6 --- frontend/src/views/loans/LoansView.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/loans/LoansView.vue b/frontend/src/views/loans/LoansView.vue index e21ce33..e10d982 100644 --- a/frontend/src/views/loans/LoansView.vue +++ b/frontend/src/views/loans/LoansView.vue @@ -287,8 +287,9 @@ const loanAccounts = computed(() => const filteredSchedule = computed(() => { if (!loanDetail.value) return [] if (showPastPayments.value) return loanDetail.value.amortizationSchedule - const today = new Date().toISOString().split('T')[0] - return loanDetail.value.amortizationSchedule.filter(e => e.paymentDate.split('T')[0] >= today) + const now = new Date() + const monthStart = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-01` + return loanDetail.value.amortizationSchedule.filter(e => e.paymentDate.split('T')[0] >= monthStart) }) const payoffAmount = computed(() => {