feat: create group loan aplication functionality added (#1460)

* feat: create group loan aplication functionality added

* lint fixes

* lint fix
This commit is contained in:
Ramveer
2022-07-15 19:22:34 +05:30
committed by GitHub
parent dd4e31e56d
commit 4a40b5eca7
5 changed files with 23 additions and 14 deletions
+6 -4
View File
@@ -268,12 +268,14 @@ export class LoansService {
* @param {any} clientId Client ID
* @param {any} productId Product ID
*/
getLoansAccountTemplateResource(clientId: any, productId?: any): Observable<any> {
getLoansAccountTemplateResource(entityId: any, isGroup: boolean, productId?: any): Observable<any> {
let httpParams = new HttpParams().set('activeOnly', 'true')
.set('clientId', clientId)
.set('staffInSelectedOfficeOnly', 'true')
.set('templateType', 'individual');
.set('staffInSelectedOfficeOnly', 'true');
httpParams = productId ? httpParams.set('productId', productId) : httpParams;
httpParams = isGroup ? httpParams.set('groupId', entityId)
.set('templateType', 'group') :
httpParams.set('clientId', entityId)
.set('templateType', 'individual');
return this.http.get('/loans/template', { params: httpParams });
}