Skip to content

Commit

Permalink
Loan product with due and overdue days notification to be sent (#1775)
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
  • Loading branch information
josehernandezfintecheandomx and Jose Alberto Hernandez authored Jun 29, 2023
1 parent f459b1a commit eea79d7
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,18 @@ <h3 class="mat-h3" fxFlexFill>Loan Tranche Details</h3>
<span fxFlex="60%">{{ loanProduct.disallowExpectedDisbursements ? 'Yes' : 'No' }}</span>
</div>

<h3 class="mat-h3" fxFlexFill>Event Settings</h3>

<div fxFlexFill>
<span fxFlex="40%">Due days for repayment event:</span>
<span fxFlex="60%">{{ loanProduct.dueDaysForRepaymentEvent | number }}</span>
</div>

<div fxFlexFill>
<span fxFlex="40%">OverDue days for repayment event:</span>
<span fxFlex="60%">{{ loanProduct.overDueDaysForRepaymentEvent | number }}</span>
</div>

<h3 class="mat-h3" fxFlexFill>Configurable Terms and Settings</h3>

<mat-divider fxFlexFill></mat-divider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,22 @@ <h3 fxFlex="23%" class="mat-h3">Loan Tranche Details</h3>

<mat-divider fxFlex="98%"></mat-divider>

<h3 fxFlex="23%" class="mat-h3">Event Settings</h3>
<div fxFlexFill fxLayout="row wrap" fxLayoutGap="2%" fxLayout.lt-md="column">

<mat-form-field fxFlex="48%">
<mat-label>Due days for repayment event</mat-label>
<input type="number" matInput matTooltip="Specific days when repayment due notification should be sent." formControlName="dueDaysForRepaymentEvent" [min]="0">
</mat-form-field>

<mat-form-field fxFlex="48%">
<mat-label>OverDue days for repayment event</mat-label>
<input type="number" matInput matTooltip="Specific days when repayment Overdue notification should be sent." formControlName="overDueDaysForRepaymentEvent" [min]="0">
</mat-form-field>
</div>

<mat-divider fxFlex="98%"></mat-divider>

<h3 fxFlex="23%" class="mat-h3">Configurable Terms and Settings</h3>

<mat-checkbox fxFlex="73%" labelPosition="before" formControlName="allowAttributeConfiguration" class="margin-b">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ export class LoanProductSettingsStepComponent implements OnInit {
'multiDisburseLoan': this.loanProductsTemplate.multiDisburseLoan,
'maxTrancheCount': this.loanProductsTemplate.maxTrancheCount,
'outstandingLoanBalance': this.loanProductsTemplate.outstandingLoanBalance,
'dueDaysForRepaymentEvent': this.loanProductsTemplate.dueDaysForRepaymentEvent,
'overDueDaysForRepaymentEvent': this.loanProductsTemplate.overDueDaysForRepaymentEvent,
});

if (this.loanProductsTemplate.delinquencyBucket) {
Expand Down Expand Up @@ -181,7 +183,9 @@ export class LoanProductSettingsStepComponent implements OnInit {
'graceOnPrincipalAndInterestPayment': [true],
'graceOnArrearsAgeing': [true]
}),
'delinquencyBucketId': ['', Validators.required]
'delinquencyBucketId': ['', Validators.required],
'dueDaysForRepaymentEvent': [''],
'overDueDaysForRepaymentEvent': ['']
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,18 @@ <h3 class="mat-h3" fxFlexFill>Loan Tranche Details</h3>
</div>
</div>

<h3 class="mat-h3" fxFlexFill>Event Settings</h3>

<div fxFlexFill>
<span fxFlex="40%">Due days for repayment event:</span>
<span fxFlex="60%">{{ loanProduct.dueDaysForRepaymentEvent | number }}</span>
</div>

<div fxFlexFill>
<span fxFlex="40%">OverDue days for repayment event:</span>
<span fxFlex="60%">{{ loanProduct.overDueDaysForRepaymentEvent | number }}</span>
</div>

<h3 class="mat-h3" fxFlexFill>Configurable Terms and Settings</h3>

<mat-divider [inset]="true"></mat-divider>
Expand Down

0 comments on commit eea79d7

Please sign in to comment.