Enhancement in loan payment views (#1667)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-01-31 18:36:36 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent ffea817f76
commit b9a9a8694c
12 changed files with 73 additions and 25 deletions
+11
View File
@@ -30,6 +30,17 @@ export class LoansService {
return this.http.get(`/loans/${loanId}/transactions/template`, { params: httpParams });
}
getLoanPrepayLoanActionTemplate(loanId: string, transactionDate: string): Observable<any> {
if (!transactionDate) {
transactionDate = this.dateUtils.formatDate(this.settingsService.businessDate, this.settingsService.dateFormat);
}
const httpParams = new HttpParams().set('command', 'prepayLoan')
.set('transactionDate', transactionDate)
.set('locale', this.settingsService.language.code)
.set('dateFormat', this.settingsService.dateFormat);
return this.http.get(`/loans/${loanId}/transactions/template`, { params: httpParams });
}
getLoanForeclosureActionTemplate(loanId: string): Observable<any> {
const httpParams = new HttpParams()
.set('command', 'foreclosure')