refactor: fixed deposits module (#1201)

See: #1196
This commit is contained in:
Karan Takalkar
2020-08-13 17:44:23 +05:30
committed by GitHub
parent a1cd561453
commit 572a07bf45
11 changed files with 34 additions and 10 deletions
@@ -13,6 +13,9 @@ import { Observable } from 'rxjs';
})
export class FixedDepositsService {
/**
* @param {HttpClient} http HttpClient
*/
constructor(private http: HttpClient) {}
/**
@@ -83,7 +86,10 @@ export class FixedDepositsService {
return this.http.get('/fixeddepositaccounts/template', { params: httpParams });
}
/**
* @param {string} accountId Fixed Deposits Account Id
* @returns {Observable<any>}
*/
getFixedDepositsAccountAndTemplate(accountId: any) {
const httpParams = new HttpParams().set('associations', 'charges,+linkedAccount')
.set('template', 'true');