feat(investment): non-SLR bonds and mutual funds, rate upload, UAT fixes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 11:14:41 +05:30
co-authored by Claude Opus 5.5
parent 8e98077158
commit 13d04353e1
13 changed files with 486 additions and 111 deletions
@@ -137,6 +137,12 @@ export class FdInvestmentComponent implements OnInit {
toastVisible = false;
private toastTimer: ReturnType<typeof setTimeout> | undefined;
/** An unposted line is due from about two days before its date (the reminder window); before that it is scheduled. */
isDueSoon(intDate: string): boolean {
const due = parseDDMMYYYY(intDate).getTime();
return due - parseDDMMYYYY(todayDDMMYYYY()).getTime() <= 2 * 24 * 3600 * 1000;
}
ngOnInit(): void {
this.investmentService.getParties().subscribe({
next: (ps) => (this.fdParties = ps.filter((p) => p.bondType === 'FD' && p.active && !!p.interestGlAccountId)),