From 9ed38f0f7b16bdd3e5483264c9a9c4bd9cb99b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alberto=20Hern=C3=A1ndez?= <44206706+josehernandezfintecheandomx@users.noreply.github.com> Date: Sat, 21 Jan 2023 23:24:49 -0600 Subject: [PATCH] Update dashboard table reports (#1653) Co-authored-by: Jose Alberto Hernandez --- .../amount-disbursed-pie.component.html | 4 +- .../amount-disbursed-pie.component.ts | 2 +- src/app/home/home.service.ts | 4 +- .../loan-action-button.resolver.ts | 2 + .../create-glim-account.component.ts | 3 -- .../disburse-to-savings-account.component.ts | 1 - .../foreclosure/foreclosure.component.html | 6 +-- .../foreclosure/foreclosure.component.ts | 39 +++++-------------- .../loan-account-actions.component.html | 2 +- .../withdrawn-by-client.component.ts | 2 +- .../write-off-page.component.ts | 2 +- .../loans/loans-view/loans-view.component.ts | 5 +++ .../reschedule-loan-tab.component.ts | 4 +- src/app/loans/loans.service.ts | 11 ++++++ src/app/loans/models/loan-status.nodel.ts | 14 +++++++ .../view-bulk-import.component.html | 4 +- .../bulk-loan-reassignmnet.component.ts | 1 - .../create-gsim-account.component.ts | 1 - .../gsim-account/gsim-account.component.ts | 3 -- .../view-transaction.component.ts | 1 - .../view-history-scheduler-job.component.ts | 1 - .../edit-report/edit-report.component.ts | 1 - .../edit-survey/edit-survey.component.ts | 1 - .../loan-disbursal.component.ts | 1 - 24 files changed, 58 insertions(+), 57 deletions(-) create mode 100644 src/app/loans/models/loan-status.nodel.ts diff --git a/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.html b/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.html index b4ebb763c..912bdf4fb 100644 --- a/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.html +++ b/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.html @@ -3,7 +3,7 @@

-    Amount Disbursed +    Amount Pending / Disbursed
Office @@ -24,7 +24,7 @@

No Data

-
+ diff --git a/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.ts b/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.ts index 4c97ec5b2..7b42a3a51 100644 --- a/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.ts +++ b/src/app/home/dashboard/amount-disbursed-pie/amount-disbursed-pie.component.ts @@ -28,7 +28,7 @@ export class AmountDisbursedPieComponent implements OnInit { /** Substitute for resolver */ hideOutput = true; /** Shows fallback element */ - showFallback = false; + showFallback = true; /** * Fetches offices data from `resolve`. diff --git a/src/app/home/home.service.ts b/src/app/home/home.service.ts index ee098ae5a..18c265c1c 100644 --- a/src/app/home/home.service.ts +++ b/src/app/home/home.service.ts @@ -26,7 +26,7 @@ export class HomeService { const httpParams = new HttpParams() .set('R_officeId', officeId.toString()) .set('genericResultSet', 'false'); - return this.http.get('/runreports/Demand_Vs_Collection', { params: httpParams }); + return this.http.get('/runreports/Demand Vs Collection', { params: httpParams }); } /** @@ -37,7 +37,7 @@ export class HomeService { const httpParams = new HttpParams() .set('R_officeId', officeId.toString()) .set('genericResultSet', 'false'); - return this.http.get('/runreports/Disbursal_Vs_Awaitingdisbursal', { params: httpParams }); + return this.http.get('/runreports/Disbursal Vs Awaitingdisbursal', { params: httpParams }); } /** diff --git a/src/app/loans/common-resolvers/loan-action-button.resolver.ts b/src/app/loans/common-resolvers/loan-action-button.resolver.ts index ef0270874..84742accd 100644 --- a/src/app/loans/common-resolvers/loan-action-button.resolver.ts +++ b/src/app/loans/common-resolvers/loan-action-button.resolver.ts @@ -68,6 +68,8 @@ export class LoanActionButtonResolver implements Resolve { return this.loansService.getLoanApprovalTemplate(loanId); } else if (loanActionButton === 'Add Loan Charge') { return this.loansService.getLoanChargeTemplateResource(loanId); + } else if (loanActionButton === 'Foreclosure') { + return this.loansService.getLoanForeclosureActionTemplate(loanId); } else { return undefined; } diff --git a/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts b/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts index f7c944ced..fceca6e8a 100644 --- a/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts +++ b/src/app/loans/glim-account/create-glim-account/create-glim-account.component.ts @@ -149,7 +149,6 @@ export class CreateGlimAccountComponent implements OnInit { const memberSelected = this.selectedMembers.selectedMembers; this.totalLoanAmount(); for (let index = 0; index < memberSelected.length; index++) { - console.log(memberSelected); requestData.push({ requestId: index.toString(), method : 'POST', @@ -167,7 +166,6 @@ export class CreateGlimAccountComponent implements OnInit { for (let index = 0; index < memberSelected.length; index++) { total += memberSelected[index].principal; } - console.log(total); this.totalLoan = total; } @@ -176,7 +174,6 @@ export class CreateGlimAccountComponent implements OnInit { */ submit() { const data = this.buildRequestData(); - console.log(data); this.loansService.createGlimAccount(data).subscribe((response: any) => { this.router.navigate(['../../../'], { relativeTo: this.route }); }); diff --git a/src/app/loans/loans-view/loan-account-actions/disburse-to-savings-account/disburse-to-savings-account.component.ts b/src/app/loans/loans-view/loan-account-actions/disburse-to-savings-account/disburse-to-savings-account.component.ts index 5f2b85c88..1b18f14ef 100644 --- a/src/app/loans/loans-view/loan-account-actions/disburse-to-savings-account/disburse-to-savings-account.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/disburse-to-savings-account/disburse-to-savings-account.component.ts @@ -46,7 +46,6 @@ export class DisburseToSavingsAccountComponent implements OnInit { * Set Disbursement Loan form. */ setDisbursementToSavingsForm() { - console.log(this.dataObject); this.disbursementForm = this.formBuilder.group({ 'actualDisbursementDate': [new Date(), Validators.required], 'transactionAmount': [this.dataObject.amount, Validators.required], diff --git a/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.html b/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.html index 2b77881e5..3aa975f59 100644 --- a/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.html +++ b/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.html @@ -21,17 +21,17 @@ Principal - + Interest - + Fee Amount - + diff --git a/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.ts b/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.ts index 0c3fe1007..5844626d3 100644 --- a/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/foreclosure/foreclosure.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { LoansService } from 'app/loans/loans.service'; import { ActivatedRoute, Router } from '@angular/router'; @@ -13,6 +13,8 @@ import { Dates } from 'app/core/utils/dates'; styleUrls: ['./foreclosure.component.scss'] }) export class ForeclosureComponent implements OnInit { + @Input() dataObject: any; + loanId: any; foreclosureForm: FormGroup; /** Minimum Date allowed. */ @@ -20,7 +22,6 @@ export class ForeclosureComponent implements OnInit { /** Maximum Date allowed. */ maxDate = new Date(); foreclosuredata: any; - paymentTypes: any; /** * @param {FormBuilder} formBuilder Form Builder. @@ -46,14 +47,13 @@ export class ForeclosureComponent implements OnInit { createforeclosureForm() { this.foreclosureForm = this.formBuilder.group({ - 'transactionDate': [new Date(), Validators.required], - 'outstandingPrincipalPortion': [{value: '', disabled: true}], - 'outstandingInterestPortion': [{value: '', disabled: true}], - 'outstandingFeeChargesPortion': [{value: '', disabled: true}], - 'outstandingPenaltyChargesPortion': [{value: '', disabled: true}], - 'transactionAmount': [{value: '', disabled: true}], - 'interestAccruedAfterDeath': '', - 'note': '' + 'transactionDate': [this.dataObject.date && new Date(this.dataObject.date), Validators.required], + 'outstandingPrincipalPortion': [{value: this.dataObject.principalPortion || 0, disabled: true}], + 'outstandingInterestPortion': [{value: this.dataObject.interestPortion || 0, disabled: true}], + 'outstandingFeeChargesPortion': [{value: this.dataObject.feeChargesPortion || 0, disabled: true}], + 'outstandingPenaltyChargesPortion': [{value: this.dataObject.penaltyChargesPortion || 0, disabled: true}], + 'transactionAmount': [{value: this.dataObject.amount, disabled: true}], + 'note': ['', Validators.required] }); } @@ -82,26 +82,7 @@ export class ForeclosureComponent implements OnInit { outstandingInterestPortion: this.foreclosuredata.interestPortion, outstandingFeeChargesPortion: this.foreclosuredata.feeChargesPortion, outstandingPenaltyChargesPortion: this.foreclosuredata.penaltyChargesPortion, - foreClosureChargesPortion: this.foreclosuredata.foreClosureChargesPortion }); - if (this.foreclosuredata.unrecognizedIncomePortion) { - this.foreclosureForm.patchValue({ - interestAccruedAfterDeath: this.foreclosuredata.unrecognizedIncomePortion - }); - } - this.calculateTransactionAmount(); - this.paymentTypes = this.foreclosuredata.paymentTypeOptions; - }); - } - - calculateTransactionAmount() { - let transactionAmount = 0; - transactionAmount += parseFloat(this.foreclosuredata.principalPortion); - transactionAmount += parseFloat(this.foreclosuredata.interestPortion); - transactionAmount += parseFloat(this.foreclosuredata.feeChargesPortion); - transactionAmount += parseFloat(this.foreclosuredata.penaltyChargesPortion); - this.foreclosureForm.patchValue({ - transactionAmount: transactionAmount }); } diff --git a/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.html b/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.html index fc8003bb1..7fa50a0c3 100644 --- a/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.html +++ b/src/app/loans/loans-view/loan-account-actions/loan-account-actions.component.html @@ -1,7 +1,7 @@ - + diff --git a/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.ts b/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.ts index 96568eb48..1151c5ea2 100644 --- a/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.ts @@ -79,7 +79,7 @@ export class WithdrawnByClientComponent implements OnInit { }; this.loanService.loanActionButtons(this.loanId, 'withdrawnByApplicant', data) .subscribe((response: any) => { - this.router.navigate(['../../../general'], { relativeTo: this.route }); + this.router.navigate(['../../general'], { relativeTo: this.route }); }); } diff --git a/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.ts b/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.ts index 1fecf0769..a9e4dc623 100644 --- a/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.ts @@ -79,7 +79,7 @@ export class WriteOffPageComponent implements OnInit { const loanId = this.route.parent.snapshot.params['loanId']; delete data.amount; this.loanService.submitLoanActionButton(loanId, data, 'writeoff').subscribe((response: any) => { - this.router.navigate(['../../../general'], {relativeTo: this.route}); + this.router.navigate(['../../general'], {relativeTo: this.route}); }); } diff --git a/src/app/loans/loans-view/loans-view.component.ts b/src/app/loans/loans-view/loans-view.component.ts index a2afd5e33..a6a02dfe7 100644 --- a/src/app/loans/loans-view/loans-view.component.ts +++ b/src/app/loans/loans-view/loans-view.component.ts @@ -12,6 +12,7 @@ import { LoansAccountButtonConfiguration } from './loan-accounts-button-config'; /** Dialog Components */ import { ConfirmationDialogComponent } from '../../shared/confirmation-dialog/confirmation-dialog.component'; import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component'; +import { LoanStatus } from '../models/loan-status.nodel'; @Component({ selector: 'mifosx-loans-view', @@ -38,6 +39,8 @@ export class LoansViewComponent implements OnInit { /** Disburse Transaction number */ disburseTransactionNo = 0; + loanStatus: LoanStatus; + constructor(private route: ActivatedRoute, private router: Router, public loansService: LoansService, @@ -45,6 +48,8 @@ export class LoansViewComponent implements OnInit { this.route.data.subscribe((data: { loanDetailsData: any, loanDatatables: any}) => { this.loanDetailsData = data.loanDetailsData; this.loanDatatables = data.loanDatatables; + this.loanStatus = this.loanDetailsData.status; + console.log(this.loanStatus); }); this.loanId = this.route.snapshot.params['loanId']; this.clientId = this.loanDetailsData.clientId; diff --git a/src/app/loans/loans-view/reschedule-loan-tab/reschedule-loan-tab.component.ts b/src/app/loans/loans-view/reschedule-loan-tab/reschedule-loan-tab.component.ts index 038ea4955..84a230a84 100644 --- a/src/app/loans/loans-view/reschedule-loan-tab/reschedule-loan-tab.component.ts +++ b/src/app/loans/loans-view/reschedule-loan-tab/reschedule-loan-tab.component.ts @@ -1,8 +1,9 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ActivatedRoute, Router } from '@angular/router'; import { Dates } from 'app/core/utils/dates'; import { LoansService } from 'app/loans/loans.service'; +import { LoanStatus } from 'app/loans/models/loan-status.nodel'; import { SettingsService } from 'app/settings/settings.service'; import { ConfirmationDialogComponent } from 'app/shared/confirmation-dialog/confirmation-dialog.component'; @@ -12,6 +13,7 @@ import { ConfirmationDialogComponent } from 'app/shared/confirmation-dialog/conf styleUrls: ['./reschedule-loan-tab.component.scss'] }) export class RescheduleLoanTabComponent implements OnInit { + @Input() loanStatus: LoanStatus; loanRescheduleData: any; loanRescheduleDataColumns: string[] = ['id', 'rescheduleFromDate', 'reason', 'status', 'actions']; diff --git a/src/app/loans/loans.service.ts b/src/app/loans/loans.service.ts index 440ca2714..831c096e9 100644 --- a/src/app/loans/loans.service.ts +++ b/src/app/loans/loans.service.ts @@ -5,6 +5,7 @@ import { HttpClient, HttpParams } from '@angular/common/http'; /** rxjs Imports */ import { Observable } from 'rxjs'; import { Dates } from 'app/core/utils/dates'; +import { SettingsService } from 'app/settings/settings.service'; /** * Loans service. @@ -14,6 +15,7 @@ import { Dates } from 'app/core/utils/dates'; }) export class LoansService { constructor(private http: HttpClient, + private settingsService: SettingsService, private dateUtils: Dates) { } /** * @param {string} loanId loanId of the loan. @@ -28,6 +30,15 @@ export class LoansService { return this.http.get(`/loans/${loanId}/transactions/template`, { params: httpParams }); } + getLoanForeclosureActionTemplate(loanId: string): Observable { + const httpParams = new HttpParams() + .set('command', 'foreclosure') + .set('locale', this.settingsService.language.code) + .set('dateFormat', this.settingsService.dateFormat) + .set('transactionDate', this.dateUtils.formatDate(this.settingsService.businessDate, this.settingsService.dateFormat)) + return this.http.get(`/loans/${loanId}/transactions/template`, { params: httpParams }); + } + getLoanAccountResource(loanId: string, associations: string): Observable { const httpParams = new HttpParams().set('associations', associations); return this.http.get(`/loans/${loanId}`, { params: httpParams }); diff --git a/src/app/loans/models/loan-status.nodel.ts b/src/app/loans/models/loan-status.nodel.ts new file mode 100644 index 000000000..b15fc40e2 --- /dev/null +++ b/src/app/loans/models/loan-status.nodel.ts @@ -0,0 +1,14 @@ +export interface LoanStatus { + id: number; + code: string; + value: string; + + active: boolean; + closed: boolean; + closedObligationsMet: boolean; + closedRescheduled: boolean; + closedWrittenOff: boolean; + overpaid: boolean; + pendingApproval: boolean; + waitingForDisbursal: boolean; +} diff --git a/src/app/organization/bulk-import/view-bulk-import/view-bulk-import.component.html b/src/app/organization/bulk-import/view-bulk-import/view-bulk-import.component.html index 646633ae8..c45eba7a6 100644 --- a/src/app/organization/bulk-import/view-bulk-import/view-bulk-import.component.html +++ b/src/app/organization/bulk-import/view-bulk-import/view-bulk-import.component.html @@ -13,7 +13,7 @@
Office - + {{ office.name }} @@ -24,7 +24,7 @@
Staff - + {{ staff.displayName }} diff --git a/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts b/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts index ba9164dc9..2abe25572 100644 --- a/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts +++ b/src/app/organization/bulk-loan-reassignmnet/bulk-loan-reassignmnet.component.ts @@ -89,7 +89,6 @@ export class BulkLoanReassignmnetComponent implements OnInit { */ getFromOfficers(officerId: any) { this.toLoanOfficers = this.fromLoanOfficers.filter((officer: any) => officer.id !== officerId ); - console.log(this.toLoanOfficers); this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => { this.officerTemplate = response; }); diff --git a/src/app/savings/gsim-account/create-gsim-account/create-gsim-account.component.ts b/src/app/savings/gsim-account/create-gsim-account/create-gsim-account.component.ts index 4bc5595e7..465a6f84e 100644 --- a/src/app/savings/gsim-account/create-gsim-account/create-gsim-account.component.ts +++ b/src/app/savings/gsim-account/create-gsim-account/create-gsim-account.component.ts @@ -143,7 +143,6 @@ export class CreateGsimAccountComponent implements OnInit { const requestData = []; const memberSelected = this.selectedMembers.selectedMembers; for (let index = 0; index < 1; index++) { - console.log(index); requestData.push( this.setData( memberSelected[ index ] ), ); diff --git a/src/app/savings/gsim-account/gsim-account.component.ts b/src/app/savings/gsim-account/gsim-account.component.ts index 784111e80..38dcbaf94 100644 --- a/src/app/savings/gsim-account/gsim-account.component.ts +++ b/src/app/savings/gsim-account/gsim-account.component.ts @@ -39,7 +39,6 @@ export class GsimAccountComponent implements OnInit { this.gsimOverviewData = data.gsimData[0].childGSIMAccounts; this.savingAccountData = data.savingAccountData; this.groupsData = data.groupsData; - console.log(data); }); } @@ -52,8 +51,6 @@ export class GsimAccountComponent implements OnInit { */ setLoanClientChargeOverview() { this.dataSource = new MatTableDataSource(this.gsimOverviewData); - console.log(this.dataSource); - console.log(this.gsimOverviewData); // this.dataSource.paginator = this.paginator; } diff --git a/src/app/savings/savings-account-view/transactions/view-transaction/view-transaction.component.ts b/src/app/savings/savings-account-view/transactions/view-transaction/view-transaction.component.ts index 11ea7087e..f87b4c578 100644 --- a/src/app/savings/savings-account-view/transactions/view-transaction/view-transaction.component.ts +++ b/src/app/savings/savings-account-view/transactions/view-transaction/view-transaction.component.ts @@ -46,7 +46,6 @@ export class ViewTransactionComponent { this.route.data.subscribe((data: { savingsAccountTransaction: any }) => { this.accountId = this.route.parent.snapshot.params['savingAccountId']; this.transactionData = data.savingsAccountTransaction; - console.log(this.transactionData); }); } diff --git a/src/app/system/manage-jobs/scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.ts b/src/app/system/manage-jobs/scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.ts index ba355502c..08e3f71d0 100644 --- a/src/app/system/manage-jobs/scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.ts +++ b/src/app/system/manage-jobs/scheduler-jobs/view-history-scheduler-job/view-history-scheduler-job.component.ts @@ -35,7 +35,6 @@ export class ViewHistorySchedulerJobComponent implements OnInit { private router: Router ) { this.route.data.subscribe(( data: { jobsSchedulerHistory: any }) => { this.jobHistoryData = data.jobsSchedulerHistory; - console.log(this.jobHistoryData); }); } diff --git a/src/app/system/manage-reports/edit-report/edit-report.component.ts b/src/app/system/manage-reports/edit-report/edit-report.component.ts index 2d11b295c..b6dddbf41 100644 --- a/src/app/system/manage-reports/edit-report/edit-report.component.ts +++ b/src/app/system/manage-reports/edit-report/edit-report.component.ts @@ -194,7 +194,6 @@ export class EditReportComponent implements OnInit { * if successful redirects to view updated report. */ submit() { - console.log(this.reportParametersData); if (this.reportData.coreReport) { this.reportForm.value.reportParameters = undefined; } else { diff --git a/src/app/system/manage-surveys/edit-survey/edit-survey.component.ts b/src/app/system/manage-surveys/edit-survey/edit-survey.component.ts index a738f555a..0dd47d554 100644 --- a/src/app/system/manage-surveys/edit-survey/edit-survey.component.ts +++ b/src/app/system/manage-surveys/edit-survey/edit-survey.component.ts @@ -191,7 +191,6 @@ export class EditSurveyComponent implements OnInit { updateSequenceNumber() { for (let questionIndex = 0; questionIndex < this.questionDatas.length; questionIndex++) { this.questionDatas.at(questionIndex).get('sequenceNo').setValue(questionIndex + 1); - console.log(this.questionDatas); for (let responseIndex = 0; responseIndex < this.getResponseDatas(questionIndex).length; responseIndex++) { this.getResponseDatas(questionIndex).at(responseIndex).get('sequenceNo').setValue(responseIndex + 1); } diff --git a/src/app/tasks/checker-inbox-and-tasks-tabs/loan-disbursal/loan-disbursal.component.ts b/src/app/tasks/checker-inbox-and-tasks-tabs/loan-disbursal/loan-disbursal.component.ts index fdf322ffc..173d0f52f 100644 --- a/src/app/tasks/checker-inbox-and-tasks-tabs/loan-disbursal/loan-disbursal.component.ts +++ b/src/app/tasks/checker-inbox-and-tasks-tabs/loan-disbursal/loan-disbursal.component.ts @@ -109,7 +109,6 @@ export class LoanDisbursalComponent { this.batchRequests.push(batchData); }); this.tasksService.submitBatchData(this.batchRequests).subscribe((response: any) => { - console.log(response); response.forEach((responseEle: any) => { if (responseEle.statusCode = '200') { approvedAccounts++;