Skip to content

Commit 61f30c8

Browse files
authored
Merge pull request #2738 from alberto-art3ch/WEB-387/loan-repayment-installment-style-color-overdue
WEB-387: Loan repayment installment style color overdue
2 parents 3b5a68b + f5e488e commit 61f30c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/loans/loans-view/repayment-schedule-tab/repayment-schedule-tab.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { InputBase } from 'app/shared/form-dialog/formfield/model/input-base';
1111

1212
import { jsPDF, jsPDFOptions } from 'jspdf';
1313
import autoTable from 'jspdf-autotable';
14-
import { NgIf, NgClass, CurrencyPipe } from '@angular/common';
15-
import { MatButton, MatIconButton } from '@angular/material/button';
14+
import { NgClass, CurrencyPipe } from '@angular/common';
15+
import { MatIconButton } from '@angular/material/button';
1616
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
1717
import {
1818
MatTable,
@@ -172,6 +172,7 @@ export class RepaymentScheduleTabComponent implements OnInit, OnChanges {
172172
if (!installment.fromDate) {
173173
return '';
174174
} else {
175+
this.businessDate = this.settingsService.businessDate;
175176
const fromDate = this.dateUtils.parseDate(installment.fromDate);
176177
const dueDate = this.dateUtils.parseDate(installment.dueDate);
177178
if (fromDate <= this.businessDate && this.businessDate < dueDate) {

0 commit comments

Comments
 (0)