feat: edit fixed deposits account (#1011)

Fixes: #1010
This commit is contained in:
Karan Takalkar
2020-07-07 20:51:17 +05:30
committed by GitHub
parent 24ecbb1758
commit 5f6422e3f1
19 changed files with 432 additions and 29 deletions
@@ -83,6 +83,13 @@ export class FixedDepositsService {
return this.http.get('/fixeddepositaccounts/template', { params: httpParams });
}
getFixedDepositsAccountAndTemplate(accountId: any) {
const httpParams = new HttpParams().set('associations', 'charges,+linkedAccount')
.set('template', 'true');
return this.http.get(`/fixeddepositaccounts/${accountId}`, { params: httpParams });
}
/**
* @param fixedDepositAccount Fixed Deposit Account
* @returns {Observable<any>}
@@ -91,6 +98,15 @@ export class FixedDepositsService {
return this.http.post(`/fixeddepositaccounts`, fixedDepositAccount);
}
/**
* @param {any} accountId Account Id
* @param {any} fixedDepositAccount Fixed Deposit Account
* @returns {Observable<any>}
*/
updateFixedDepositAccount(accountId: any, fixedDepositAccount: any): Observable<any> {
return this.http.put(`/fixeddepositaccounts/${accountId}`, fixedDepositAccount);
}
/**
* @param clientId Client Id
* @param clientName Client Name