Enhancement in loan payment views (#1667)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
ffea817f76
commit
b9a9a8694c
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user