Merge pull request #2738 from alberto-art3ch/WEB-387/loan-repayment-installment-style-color-overdue

WEB-387: Loan repayment installment style color overdue
This commit is contained in:
Felix van Hove
2025-10-31 11:06:34 +01:00
committed by GitHub
@@ -11,8 +11,8 @@ import { InputBase } from 'app/shared/form-dialog/formfield/model/input-base';
import { jsPDF, jsPDFOptions } from 'jspdf'; import { jsPDF, jsPDFOptions } from 'jspdf';
import autoTable from 'jspdf-autotable'; import autoTable from 'jspdf-autotable';
import { NgIf, NgClass, CurrencyPipe } from '@angular/common'; import { NgClass, CurrencyPipe } from '@angular/common';
import { MatButton, MatIconButton } from '@angular/material/button'; import { MatIconButton } from '@angular/material/button';
import { FaIconComponent } from '@fortawesome/angular-fontawesome'; import { FaIconComponent } from '@fortawesome/angular-fontawesome';
import { import {
MatTable, MatTable,
@@ -172,6 +172,7 @@ export class RepaymentScheduleTabComponent implements OnInit, OnChanges {
if (!installment.fromDate) { if (!installment.fromDate) {
return ''; return '';
} else { } else {
this.businessDate = this.settingsService.businessDate;
const fromDate = this.dateUtils.parseDate(installment.fromDate); const fromDate = this.dateUtils.parseDate(installment.fromDate);
const dueDate = this.dateUtils.parseDate(installment.dueDate); const dueDate = this.dateUtils.parseDate(installment.dueDate);
if (fromDate <= this.businessDate && this.businessDate < dueDate) { if (fromDate <= this.businessDate && this.businessDate < dueDate) {