diff --git a/src/app/clients/clients.component.html b/src/app/clients/clients.component.html index 2f503caae..91fc69970 100644 --- a/src/app/clients/clients.component.html +++ b/src/app/clients/clients.component.html @@ -78,7 +78,7 @@ - diff --git a/src/app/clients/edit-client/edit-client.component.html b/src/app/clients/edit-client/edit-client.component.html index 15d0f75e1..504551aa1 100644 --- a/src/app/clients/edit-client/edit-client.component.html +++ b/src/app/clients/edit-client/edit-client.component.html @@ -190,7 +190,7 @@ - + diff --git a/src/app/core/shell/breadcrumb/breadcrumb.component.ts b/src/app/core/shell/breadcrumb/breadcrumb.component.ts index 598bef248..c7ed6f4c9 100644 --- a/src/app/core/shell/breadcrumb/breadcrumb.component.ts +++ b/src/app/core/shell/breadcrumb/breadcrumb.component.ts @@ -159,6 +159,17 @@ export class BreadcrumbComponent implements OnInit, AfterViewInit { url = currentUrl; } } + if (url !== undefined) { + if (url.length > 8 && url.search(`/clients/`) > 0 ) { + const replaceGeneral = `/general/`; + let currentUrlTemp = url.replace(replaceGeneral, `/`); + currentUrlTemp = currentUrlTemp.replace(`//`, `/`); + currentUrlTemp += `/general`; + const replaceDoubleSlash = `/general/general`; + currentUrlTemp = currentUrlTemp.replace(replaceDoubleSlash, `/general`); + url = currentUrlTemp; + } + } const breadcrumb: Breadcrumb = { label: breadcrumbLabel, 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 6bbd992da..ef0270874 100644 --- a/src/app/loans/common-resolvers/loan-action-button.resolver.ts +++ b/src/app/loans/common-resolvers/loan-action-button.resolver.ts @@ -14,63 +14,63 @@ import { LoansService } from '../loans.service'; @Injectable() export class LoanActionButtonResolver implements Resolve { - /** - * @param {LoansService} LoansService Loans service. - */ - constructor(private loansService: LoansService) { } + /** + * @param {LoansService} LoansService Loans service. + */ + constructor(private loansService: LoansService) { } - /** - * Returns the Loans Notes Data. - * @returns {Observable} - */ - resolve(route: ActivatedRouteSnapshot): Observable { - const loanId = route.parent.paramMap.get('loanId'); - const loanActionButton = route.paramMap.get('action'); - if (loanActionButton === 'Assign Loan Officer' || loanActionButton === 'Change Loan Officer') { - return this.loansService.getLoanTemplate(loanId); - } else if (loanActionButton === 'Make Repayment') { - return this.loansService.getLoanActionTemplate(loanId, 'repayment'); - } else if (loanActionButton === 'Goodwill Credit') { - return this.loansService.getLoanActionTemplate(loanId, 'goodwillCredit'); - } else if (loanActionButton === 'Payout Refund') { - return this.loansService.getLoanActionTemplate(loanId, 'payoutRefund'); - } else if (loanActionButton === 'Merchant Issued Refund') { - return this.loansService.getLoanActionTemplate(loanId, 'merchantIssuedRefund'); - } else if (loanActionButton === 'Credit Balance Refund') { - return this.loansService.getLoanActionTemplate(loanId, 'creditBalanceRefund'); - } else if (loanActionButton === 'Waive Interest') { - return this.loansService.getLoanActionTemplate(loanId, 'waiveinterest'); - } else if (loanActionButton === 'Write Off') { - return this.loansService.getLoanActionTemplate(loanId, 'writeoff'); - } else if (loanActionButton === 'Close') { - return this.loansService.getLoanActionTemplate(loanId, 'close'); - } else if (loanActionButton === 'Close (as Rescheduled)') { - return this.loansService.getLoanActionTemplate(loanId, 'close-rescheduled'); - } else if (loanActionButton === 'Reschedule') { - return this.loansService.rescheduleLoanTemplate(); - } else if (loanActionButton === 'Prepay Loan') { - return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan'); - } else if (loanActionButton === 'Add Collateral') { - return this.loansService.getLoanCollateralTemplate(loanId); - } else if (loanActionButton === 'Disburse to Savings') { - return this.loansService.getLoanActionTemplate(loanId, 'disburseToSavings'); - } else if (loanActionButton === 'Recovery Payment') { - return this.loansService.getLoanActionTemplate(loanId, 'recoverypayment'); - } else if (loanActionButton === 'View Guarantors') { - return this.loansService.getLoanAccountResource(loanId, 'guarantors'); - } else if (loanActionButton === 'Create Guarantor') { - return this.loansService.getGuarantorTemplate(loanId); - } else if (loanActionButton === 'Disburse') { - return this.loansService.getLoanActionTemplate(loanId, 'disburse'); - } else if (loanActionButton === 'Loan Screen Reports') { - return this.loansService.getLoanScreenReportsData(); - } else if (loanActionButton === 'Approve') { - return this.loansService.getLoanApprovalTemplate(loanId); - } else if (loanActionButton === 'Add Loan Charge') { - return this.loansService.getLoanChargeTemplateResource(loanId); - } else { - return undefined; - } + /** + * Returns the Loans Notes Data. + * @returns {Observable} + */ + resolve(route: ActivatedRouteSnapshot): Observable { + const loanId = route.parent.paramMap.get('loanId'); + const loanActionButton = route.paramMap.get('action'); + if (loanActionButton === 'Assign Loan Officer' || loanActionButton === 'Change Loan Officer') { + return this.loansService.getLoanTemplate(loanId); + } else if (loanActionButton === 'Make Repayment') { + return this.loansService.getLoanActionTemplate(loanId, 'repayment'); + } else if (loanActionButton === 'Goodwill Credit') { + return this.loansService.getLoanActionTemplate(loanId, 'goodwillCredit'); + } else if (loanActionButton === 'Payout Refund') { + return this.loansService.getLoanActionTemplate(loanId, 'payoutRefund'); + } else if (loanActionButton === 'Merchant Issued Refund') { + return this.loansService.getLoanActionTemplate(loanId, 'merchantIssuedRefund'); + } else if (loanActionButton === 'Credit Balance Refund') { + return this.loansService.getLoanActionTemplate(loanId, 'creditBalanceRefund'); + } else if (loanActionButton === 'Waive Interest') { + return this.loansService.getLoanActionTemplate(loanId, 'waiveinterest'); + } else if (loanActionButton === 'Write Off') { + return this.loansService.getLoanActionTemplate(loanId, 'writeoff'); + } else if (loanActionButton === 'Close') { + return this.loansService.getLoanActionTemplate(loanId, 'close'); + } else if (loanActionButton === 'Close (as Rescheduled)') { + return this.loansService.getLoanActionTemplate(loanId, 'close-rescheduled'); + } else if (loanActionButton === 'Reschedule') { + return this.loansService.rescheduleLoanTemplate(); + } else if (loanActionButton === 'Prepay Loan') { + return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan'); + } else if (loanActionButton === 'Add Collateral') { + return this.loansService.getLoanCollateralTemplate(loanId); + } else if (loanActionButton === 'Disburse to Savings') { + return this.loansService.getLoanActionTemplate(loanId, 'disburseToSavings'); + } else if (loanActionButton === 'Recovery Payment') { + return this.loansService.getLoanActionTemplate(loanId, 'recoverypayment'); + } else if (loanActionButton === 'View Guarantors') { + return this.loansService.getLoanAccountResource(loanId, 'guarantors'); + } else if (loanActionButton === 'Create Guarantor') { + return this.loansService.getGuarantorTemplate(loanId); + } else if (loanActionButton === 'Disburse') { + return this.loansService.getLoanActionTemplate(loanId, 'disburse'); + } else if (loanActionButton === 'Loan Screen Reports') { + return this.loansService.getLoanScreenReportsData(); + } else if (loanActionButton === 'Approve') { + return this.loansService.getLoanApprovalTemplate(loanId); + } else if (loanActionButton === 'Add Loan Charge') { + return this.loansService.getLoanChargeTemplateResource(loanId); + } else { + return undefined; } + } } diff --git a/src/app/loans/loans-view/charges-tab/charges-tab.component.html b/src/app/loans/loans-view/charges-tab/charges-tab.component.html index ba4ce3820..d57bf0600 100644 --- a/src/app/loans/loans-view/charges-tab/charges-tab.component.html +++ b/src/app/loans/loans-view/charges-tab/charges-tab.component.html @@ -9,8 +9,8 @@ Fee/Penalty - - Penalty + + Penalty Fee @@ -31,28 +31,28 @@ - Due - {{ charge.currency.displaySymbol }}{{ charge.amount| number }} + Due + {{ charge.currency.displaySymbol }}{{ charge.amount| number }} - Paid - {{ charge.currency.displaySymbol }}{{ charge.amountPaid| number }} + Paid + {{ charge.currency.displaySymbol }}{{ charge.amountPaid| number }} - Waived - {{ charge.currency.displaySymbol }}{{ charge.amountWaived| number }} + Waived + {{ charge.currency.displaySymbol }}{{ charge.amountWaived| number }} - Outstanding - {{ charge.currency.displaySymbol }}{{ charge.amountOutstanding| number }} + Outstanding + {{ charge.currency.displaySymbol }}{{ charge.amountOutstanding| number }} - Actions - + Actions + - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/add-loan-charge/add-loan-charge.component.html b/src/app/loans/loans-view/loan-account-actions/add-loan-charge/add-loan-charge.component.html index 18f5c2d8c..e050c713d 100644 --- a/src/app/loans/loans-view/loan-account-actions/add-loan-charge/add-loan-charge.component.html +++ b/src/app/loans/loans-view/loan-account-actions/add-loan-charge/add-loan-charge.component.html @@ -1,4 +1,4 @@ -
+
@@ -50,14 +50,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/approve-loan/approve-loan.component.html b/src/app/loans/loans-view/loan-account-actions/approve-loan/approve-loan.component.html index fa4b9ba59..dc18a5c09 100644 --- a/src/app/loans/loans-view/loan-account-actions/approve-loan/approve-loan.component.html +++ b/src/app/loans/loans-view/loan-account-actions/approve-loan/approve-loan.component.html @@ -1,4 +1,4 @@ -
+
@@ -47,14 +47,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/assign-loan-officer/assign-loan-officer.component.html b/src/app/loans/loans-view/loan-account-actions/assign-loan-officer/assign-loan-officer.component.html index 8c932bc70..52a2c52e6 100644 --- a/src/app/loans/loans-view/loan-account-actions/assign-loan-officer/assign-loan-officer.component.html +++ b/src/app/loans/loans-view/loan-account-actions/assign-loan-officer/assign-loan-officer.component.html @@ -1,4 +1,4 @@ -
+
@@ -33,14 +33,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/close-as-rescheduled/close-as-rescheduled.component.html b/src/app/loans/loans-view/loan-account-actions/close-as-rescheduled/close-as-rescheduled.component.html index 0c3cc6137..e18395a05 100644 --- a/src/app/loans/loans-view/loan-account-actions/close-as-rescheduled/close-as-rescheduled.component.html +++ b/src/app/loans/loans-view/loan-account-actions/close-as-rescheduled/close-as-rescheduled.component.html @@ -1,4 +1,4 @@ -
+
@@ -26,14 +26,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html b/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html index 5b6d3b205..492f951bd 100644 --- a/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html +++ b/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html @@ -1,4 +1,4 @@ -
+
@@ -126,14 +126,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/disburse-loan-account/disburse-loan-account.component.html b/src/app/loans/loans-view/loan-account-actions/disburse-loan-account/disburse-loan-account.component.html index f2c87a630..c6d6a0aa6 100644 --- a/src/app/loans/loans-view/loan-account-actions/disburse-loan-account/disburse-loan-account.component.html +++ b/src/app/loans/loans-view/loan-account-actions/disburse-loan-account/disburse-loan-account.component.html @@ -1,13 +1,13 @@ -
+
- + - +
- + Disbursement On required - + Transaction amount @@ -26,7 +26,7 @@ Transaction Amount is required - + Fixed EMI amount @@ -34,22 +34,22 @@ Fixed EMI Amount is required - + Note - +
- - - - - - +
- + + + + + +
diff --git a/src/app/loans/loans-view/loan-account-actions/disburse/disburse.component.html b/src/app/loans/loans-view/loan-account-actions/disburse/disburse.component.html index 99f924f61..e4df1ac7d 100644 --- a/src/app/loans/loans-view/loan-account-actions/disburse/disburse.component.html +++ b/src/app/loans/loans-view/loan-account-actions/disburse/disburse.component.html @@ -1,4 +1,4 @@ -
+
@@ -87,14 +87,14 @@
- - - - - + + + + + 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 828caa953..10c1ceaa7 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 @@ -1,4 +1,4 @@ -
+
@@ -51,14 +51,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/loan-credit-balance-refund/loan-credit-balance-refund.component.html b/src/app/loans/loans-view/loan-account-actions/loan-credit-balance-refund/loan-credit-balance-refund.component.html index 8aaa17bcf..fd1d75a82 100644 --- a/src/app/loans/loans-view/loan-account-actions/loan-credit-balance-refund/loan-credit-balance-refund.component.html +++ b/src/app/loans/loans-view/loan-account-actions/loan-credit-balance-refund/loan-credit-balance-refund.component.html @@ -1,4 +1,4 @@ -
+
@@ -39,14 +39,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/loan-reschedule/loan-reschedule.component.html b/src/app/loans/loans-view/loan-account-actions/loan-reschedule/loan-reschedule.component.html index 3db939e96..f76a8bd1a 100644 --- a/src/app/loans/loans-view/loan-account-actions/loan-reschedule/loan-reschedule.component.html +++ b/src/app/loans/loans-view/loan-account-actions/loan-reschedule/loan-reschedule.component.html @@ -1,4 +1,4 @@ -
+
@@ -92,14 +92,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/loan-screen-reports/loan-screen-reports.component.html b/src/app/loans/loans-view/loan-account-actions/loan-screen-reports/loan-screen-reports.component.html index 9c01a9902..28a74ae57 100644 --- a/src/app/loans/loans-view/loan-account-actions/loan-screen-reports/loan-screen-reports.component.html +++ b/src/app/loans/loans-view/loan-account-actions/loan-screen-reports/loan-screen-reports.component.html @@ -1,57 +1,57 @@
- + -
+ - + -
+
- - Loan Screen Reports - - - {{ template.name }} - - - - Screen Report is required - - + + Loan Screen Reports + + + {{ template.name }} + + + + Screen Report is required + + -
+
-
+
- - - - + + + + -
+ -
+
- + -
- -
+
+ +
-
-

Please select a screen report.

-
+
+

Please select a screen report.

+
-
+
diff --git a/src/app/loans/loans-view/loan-account-actions/loans-account-close/loans-account-close.component.html b/src/app/loans/loans-view/loan-account-actions/loans-account-close/loans-account-close.component.html index e90b1ac47..7a17660a8 100644 --- a/src/app/loans/loans-view/loan-account-actions/loans-account-close/loans-account-close.component.html +++ b/src/app/loans/loans-view/loan-account-actions/loans-account-close/loans-account-close.component.html @@ -1,4 +1,4 @@ -
+
@@ -26,14 +26,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.html b/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.html index 5fd8d9518..237589f47 100644 --- a/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.html +++ b/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.html @@ -1,4 +1,4 @@ -
+
@@ -87,14 +87,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/prepay-loan/prepay-loan.component.html b/src/app/loans/loans-view/loan-account-actions/prepay-loan/prepay-loan.component.html index c69c5ffd6..7e0e89ceb 100644 --- a/src/app/loans/loans-view/loan-account-actions/prepay-loan/prepay-loan.component.html +++ b/src/app/loans/loans-view/loan-account-actions/prepay-loan/prepay-loan.component.html @@ -1,4 +1,4 @@ -
+
@@ -100,14 +100,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/recovery-repayment/recovery-repayment.component.html b/src/app/loans/loans-view/loan-account-actions/recovery-repayment/recovery-repayment.component.html index 3262c920d..0be360d3d 100644 --- a/src/app/loans/loans-view/loan-account-actions/recovery-repayment/recovery-repayment.component.html +++ b/src/app/loans/loans-view/loan-account-actions/recovery-repayment/recovery-repayment.component.html @@ -1,4 +1,4 @@ -
+
@@ -82,14 +82,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/reject-loan/reject-loan.component.html b/src/app/loans/loans-view/loan-account-actions/reject-loan/reject-loan.component.html index 073b2ad7f..0f38f3bf5 100644 --- a/src/app/loans/loans-view/loan-account-actions/reject-loan/reject-loan.component.html +++ b/src/app/loans/loans-view/loan-account-actions/reject-loan/reject-loan.component.html @@ -1,4 +1,4 @@ -
+
@@ -26,14 +26,14 @@
- - - - - + + + + + diff --git a/src/app/loans/loans-view/loan-account-actions/undo-approval/undo-approval.component.html b/src/app/loans/loans-view/loan-account-actions/undo-approval/undo-approval.component.html index 074d39833..e16132e5f 100644 --- a/src/app/loans/loans-view/loan-account-actions/undo-approval/undo-approval.component.html +++ b/src/app/loans/loans-view/loan-account-actions/undo-approval/undo-approval.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/loans/loans-view/loan-account-actions/undo-disbursal/undo-disbursal.component.html b/src/app/loans/loans-view/loan-account-actions/undo-disbursal/undo-disbursal.component.html index aea9fbae7..ac0c9f03e 100644 --- a/src/app/loans/loans-view/loan-account-actions/undo-disbursal/undo-disbursal.component.html +++ b/src/app/loans/loans-view/loan-account-actions/undo-disbursal/undo-disbursal.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html index 03b956c37..6cbc89bbe 100644 --- a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html +++ b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html @@ -1,8 +1,8 @@ -
+
-