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 @@ - Cancel + Cancel Submit 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-collateral/add-collateral.component.html b/src/app/loans/loans-view/loan-account-actions/add-collateral/add-collateral.component.html index d563e5662..d13167998 100644 --- a/src/app/loans/loans-view/loan-account-actions/add-collateral/add-collateral.component.html +++ b/src/app/loans/loans-view/loan-account-actions/add-collateral/add-collateral.component.html @@ -1,4 +1,4 @@ - + @@ -35,14 +35,14 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 - + - - - Cancel - Submit - - + - + + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Foreclosure - - + + Cancel + Foreclosure + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 + + - + - + - - Cancel - - Generate Report - - + + Cancel + + Generate Report + + - + - + - + - - - - Print - - + + + + Print + + - - 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - - Cancel - Submit - - + + Cancel + Submit + + 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 @@ - + - + @@ -66,9 +66,9 @@ - + - + Guarantors Details @@ -82,7 +82,6 @@ - Name @@ -165,15 +164,13 @@ + *mifosxHasPermission="'DELETE_GUARANTOR'" (click)="deleteGuarantor(guarantor.id)"> - - diff --git a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.scss b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.scss index 8a5f1d231..96148e858 100644 --- a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.scss +++ b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.scss @@ -1,4 +1,4 @@ -.viewGuarantors-account-tables { +.view-guarantors-account-tables { padding: 1%; margin: 1%; .table-headers { @@ -20,13 +20,13 @@ table { } } -.headingContent{ +.heading-content{ margin-bottom: 1%; margin-top: 1%; width: 100%; } -.headingName { +.heading-name { display: block; } diff --git a/src/app/loans/loans-view/loan-account-actions/waive-interest/waive-interest.component.html b/src/app/loans/loans-view/loan-account-actions/waive-interest/waive-interest.component.html index 15139d5f6..d74c54b84 100644 --- a/src/app/loans/loans-view/loan-account-actions/waive-interest/waive-interest.component.html +++ b/src/app/loans/loans-view/loan-account-actions/waive-interest/waive-interest.component.html @@ -1,4 +1,4 @@ - + @@ -34,14 +34,14 @@ - - Cancel - Submit - - + + Cancel + Submit + + diff --git a/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.html b/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.html index 248b19d8d..179d9892c 100644 --- a/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.html +++ b/src/app/loans/loans-view/loan-account-actions/withdrawn-by-client/withdrawn-by-client.component.html @@ -1,4 +1,4 @@ - + @@ -26,14 +26,14 @@ - - Cancel - Submit - - + + Cancel + Submit + + diff --git a/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.html b/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.html index f980b84f2..b4c22a998 100644 --- a/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.html +++ b/src/app/loans/loans-view/loan-account-actions/write-off-page/write-off-page.component.html @@ -1,10 +1,10 @@ - + - + @@ -33,14 +33,14 @@ - - Cancel - Submit - - + + Cancel + Submit + + diff --git a/src/app/loans/loans-view/view-charge/view-charge.component.ts b/src/app/loans/loans-view/view-charge/view-charge.component.ts index d86f817b3..07ab8853d 100644 --- a/src/app/loans/loans-view/view-charge/view-charge.component.ts +++ b/src/app/loans/loans-view/view-charge/view-charge.component.ts @@ -90,7 +90,7 @@ export class ViewChargeComponent { dateFormat, locale }; - this.loansService.executeLoansAccountChargesCommand(this.chargeData.loanId, 'paycharge', dataObject, this.chargeData.id) + this.loansService.executeLoansAccountChargesCommand(this.chargeData.loanId, 'pay', dataObject, this.chargeData.id) .subscribe(() => { this.reload(); }); diff --git a/src/app/savings/saving-account-actions/activate-savings-account/activate-savings-account.component.html b/src/app/savings/saving-account-actions/activate-savings-account/activate-savings-account.component.html index eae0c0b82..8b50a0ea8 100644 --- a/src/app/savings/saving-account-actions/activate-savings-account/activate-savings-account.component.html +++ b/src/app/savings/saving-account-actions/activate-savings-account/activate-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/add-charge-savings-account/add-charge-savings-account.component.html b/src/app/savings/saving-account-actions/add-charge-savings-account/add-charge-savings-account.component.html index 6c3650eb2..fcbf0a3f8 100644 --- a/src/app/savings/saving-account-actions/add-charge-savings-account/add-charge-savings-account.component.html +++ b/src/app/savings/saving-account-actions/add-charge-savings-account/add-charge-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/apply-annual-fees-savings-account/apply-annual-fees-savings-account.component.html b/src/app/savings/saving-account-actions/apply-annual-fees-savings-account/apply-annual-fees-savings-account.component.html index 88f637d31..537c1bf0b 100644 --- a/src/app/savings/saving-account-actions/apply-annual-fees-savings-account/apply-annual-fees-savings-account.component.html +++ b/src/app/savings/saving-account-actions/apply-annual-fees-savings-account/apply-annual-fees-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/approve-savings-account/approve-savings-account.component.html b/src/app/savings/saving-account-actions/approve-savings-account/approve-savings-account.component.html index 1e648e1a2..5c9df9630 100644 --- a/src/app/savings/saving-account-actions/approve-savings-account/approve-savings-account.component.html +++ b/src/app/savings/saving-account-actions/approve-savings-account/approve-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/close-savings-account/close-savings-account.component.html b/src/app/savings/saving-account-actions/close-savings-account/close-savings-account.component.html index c625226ba..aa6e7e8c7 100644 --- a/src/app/savings/saving-account-actions/close-savings-account/close-savings-account.component.html +++ b/src/app/savings/saving-account-actions/close-savings-account/close-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/post-interest-as-on-savings-account/post-interest-as-on-savings-account.component.html b/src/app/savings/saving-account-actions/post-interest-as-on-savings-account/post-interest-as-on-savings-account.component.html index 5ddec53e2..389a022f2 100644 --- a/src/app/savings/saving-account-actions/post-interest-as-on-savings-account/post-interest-as-on-savings-account.component.html +++ b/src/app/savings/saving-account-actions/post-interest-as-on-savings-account/post-interest-as-on-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/reject-savings-account/reject-savings-account.component.html b/src/app/savings/saving-account-actions/reject-savings-account/reject-savings-account.component.html index 7b3608bd6..9a8e9243d 100644 --- a/src/app/savings/saving-account-actions/reject-savings-account/reject-savings-account.component.html +++ b/src/app/savings/saving-account-actions/reject-savings-account/reject-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/savings-account-assign-staff/savings-account-assign-staff.component.html b/src/app/savings/saving-account-actions/savings-account-assign-staff/savings-account-assign-staff.component.html index 6cba888c9..c03bf2bed 100644 --- a/src/app/savings/saving-account-actions/savings-account-assign-staff/savings-account-assign-staff.component.html +++ b/src/app/savings/saving-account-actions/savings-account-assign-staff/savings-account-assign-staff.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/savings-account-transactions/savings-account-transactions.component.html b/src/app/savings/saving-account-actions/savings-account-transactions/savings-account-transactions.component.html index 603ef9ed8..1c0598b4a 100644 --- a/src/app/savings/saving-account-actions/savings-account-transactions/savings-account-transactions.component.html +++ b/src/app/savings/saving-account-actions/savings-account-transactions/savings-account-transactions.component.html @@ -1,4 +1,4 @@ - + @@ -80,10 +80,9 @@ - + - \ No newline at end of file diff --git a/src/app/savings/saving-account-actions/savings-account-unassign-staff/savings-account-unassign-staff.component.html b/src/app/savings/saving-account-actions/savings-account-unassign-staff/savings-account-unassign-staff.component.html index cfde857ef..3666664ba 100644 --- a/src/app/savings/saving-account-actions/savings-account-unassign-staff/savings-account-unassign-staff.component.html +++ b/src/app/savings/saving-account-actions/savings-account-unassign-staff/savings-account-unassign-staff.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/undo-approval-savings-account/undo-approval-savings-account.component.html b/src/app/savings/saving-account-actions/undo-approval-savings-account/undo-approval-savings-account.component.html index 61ecffdae..efd7bf7e9 100644 --- a/src/app/savings/saving-account-actions/undo-approval-savings-account/undo-approval-savings-account.component.html +++ b/src/app/savings/saving-account-actions/undo-approval-savings-account/undo-approval-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/saving-account-actions/withdraw-by-client-savings-account/withdraw-by-client-savings-account.component.html b/src/app/savings/saving-account-actions/withdraw-by-client-savings-account/withdraw-by-client-savings-account.component.html index 763d352f6..e14457532 100644 --- a/src/app/savings/saving-account-actions/withdraw-by-client-savings-account/withdraw-by-client-savings-account.component.html +++ b/src/app/savings/saving-account-actions/withdraw-by-client-savings-account/withdraw-by-client-savings-account.component.html @@ -1,4 +1,4 @@ - + diff --git a/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.html b/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.html index 2ccfd967a..65be171e6 100644 --- a/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.html +++ b/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.html @@ -14,9 +14,9 @@ - + Submitted On - @@ -25,7 +25,7 @@ - + Field Officer @@ -34,7 +34,7 @@ - + External ID diff --git a/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts b/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts index 4f03e5063..44d305b74 100644 --- a/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts +++ b/src/app/savings/savings-account-stepper/savings-account-details-step/savings-account-details-step.component.ts @@ -32,6 +32,8 @@ export class SavingsAccountDetailsStepComponent implements OnInit { /** Savings Account Details Form */ savingsAccountDetailsForm: FormGroup; + savingsProductSelected = false; + /** Savings Account Template with product data */ @Output() savingsAccountProductTemplate = new EventEmitter(); @@ -88,6 +90,7 @@ export class SavingsAccountDetailsStepComponent implements OnInit { .subscribe((response: any) => { this.savingsAccountProductTemplate.emit(response); this.fieldOfficerData = response.fieldOfficerOptions; + this.savingsProductSelected = true; if (!this.isFieldOfficerPatched && this.savingsAccountTemplate.fieldOfficerId) { this.savingsAccountDetailsForm.get('fieldOfficerId').patchValue(this.savingsAccountTemplate.fieldOfficerId); this.isFieldOfficerPatched = true; diff --git a/src/app/system/external-services/amazon-s3/amazon-s3.component.html b/src/app/system/external-services/amazon-s3/amazon-s3.component.html index f786b459d..233c54deb 100644 --- a/src/app/system/external-services/amazon-s3/amazon-s3.component.html +++ b/src/app/system/external-services/amazon-s3/amazon-s3.component.html @@ -16,7 +16,7 @@ Value - {{ configuration.value }} + {{ getConfigurationValue(configuration) }} diff --git a/src/app/system/external-services/amazon-s3/amazon-s3.component.ts b/src/app/system/external-services/amazon-s3/amazon-s3.component.ts index be934239c..b792168d0 100644 --- a/src/app/system/external-services/amazon-s3/amazon-s3.component.ts +++ b/src/app/system/external-services/amazon-s3/amazon-s3.component.ts @@ -49,4 +49,12 @@ export class AmazonS3Component implements OnInit { this.dataSource.sort = this.sort; } + getConfigurationValue(configuration: any): string { + const value = configuration.value; + if (configuration.name === 's3_access_key' || configuration.name === 's3_secret_key') { + return value.replace(value.substr(1, value.length - 3), value.substr(1, value.length - 3).replace(/./g, '*')); + } + return value; + } + } diff --git a/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.html b/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.html index 12eb392bf..7b77e06d7 100644 --- a/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.html +++ b/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.html @@ -8,14 +8,6 @@ - - S3 Access Key - - - S3 Access Key is required - - - S3 Bucket Name @@ -24,9 +16,27 @@ + + S3 Access Key + + + + + + + S3 Access Key is required + + + S3 Secret Key - + + + + + S3 Secret Key is required diff --git a/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.ts b/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.ts index e57147035..6375e6384 100644 --- a/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.ts +++ b/src/app/system/external-services/amazon-s3/edit-amazon-s3/edit-amazon-s3.component.ts @@ -20,6 +20,10 @@ export class EditAmazonS3Component implements OnInit { amazonS3ConfigurationData: any; /** Amazon S3 Configuration Form */ amazonS3ConfigurationForm: FormGroup; + /** Secret Key input field type. */ + secretKeyInputType: string; + /** Access Key field type. */ + accessKeyInputType: string; /** * Retrieves the Amazon S3 configuration data from `resolve`. @@ -42,6 +46,8 @@ export class EditAmazonS3Component implements OnInit { */ ngOnInit() { this.createAmazonS3ConfigurationForm(); + this.secretKeyInputType = 'password'; + this.accessKeyInputType = 'password'; } /** @@ -49,8 +55,8 @@ export class EditAmazonS3Component implements OnInit { */ createAmazonS3ConfigurationForm() { this.amazonS3ConfigurationForm = this.formBuilder.group({ - 's3_access_key': [this.amazonS3ConfigurationData[0].value, Validators.required], 's3_bucket_name': [this.amazonS3ConfigurationData[1].value, Validators.required], + 's3_access_key': [this.amazonS3ConfigurationData[0].value, Validators.required], 's3_secret_key': [this.amazonS3ConfigurationData[2].value, Validators.required] }); } diff --git a/src/app/system/manage-reports/create-report/create-report.component.html b/src/app/system/manage-reports/create-report/create-report.component.html index f4381106b..9819c28d0 100644 --- a/src/app/system/manage-reports/create-report/create-report.component.html +++ b/src/app/system/manage-reports/create-report/create-report.component.html @@ -65,7 +65,7 @@ SQL - + SQL is required diff --git a/src/app/system/manage-reports/create-report/create-report.component.scss b/src/app/system/manage-reports/create-report/create-report.component.scss index e12a7bca2..0041a1da8 100644 --- a/src/app/system/manage-reports/create-report/create-report.component.scss +++ b/src/app/system/manage-reports/create-report/create-report.component.scss @@ -2,16 +2,17 @@ .user-report-wrapper { position: relative; - + .user-report { padding: 0 0 17.5px 0; position: absolute; bottom: 0; } } - + } table { width: 100%; + margin-top: 20px; } diff --git a/src/app/system/manage-reports/edit-report/edit-report.component.html b/src/app/system/manage-reports/edit-report/edit-report.component.html index 5cf39f8e0..30d967d20 100644 --- a/src/app/system/manage-reports/edit-report/edit-report.component.html +++ b/src/app/system/manage-reports/edit-report/edit-report.component.html @@ -64,7 +64,7 @@ SQL - + SQL is required diff --git a/src/app/system/manage-reports/view-report/view-report.component.html b/src/app/system/manage-reports/view-report/view-report.component.html index 3f67d7321..e914afad4 100644 --- a/src/app/system/manage-reports/view-report/view-report.component.html +++ b/src/app/system/manage-reports/view-report/view-report.component.html @@ -32,11 +32,11 @@ {{ reportData.reportType }} - + Report Subtype: - + {{ reportData.reportSubType }} @@ -69,3 +69,5 @@ + +
Please select a screen report.