diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 016e3c7a0..4f857708c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,48 +1,52 @@ # Getting Started - View the [README](./README.md) or [watch this video](https://youtu.be/OnxxC3K2oro) to get your development environment up and running. -- Learn how to [format pull requests](#submitting-a-pull-request). -- Read how to [rebase/merge upstream branches](#configuring-remotes). -- Understand our [commit message conventions](./.github/COMMIT_MESSAGE.md). -- Sign our [Mifos CLA](http://mifos.org/about-us/financial-legal/mifos-contributor-agreement/). -- Follow our [code of conduct](https://mifos.org/resources/community/code-of-conduct/). -- [Find a Jira ticket to work on](https://mifosforge.jira.com/browse/WEB) and start smashing! -- [Ask a question on Slack](https://app.slack.com/client/T0F5GHE8Y/CJJGJLN10). +- Sign the [Contribution License Agreement](http://mifos.org/about-us/financial-legal/mifos-contributor-agreement/). +- Always follow the [code of conduct](https://mifos.org/resources/community/code-of-conduct/) - this is important to us. We are proud to be open, tolerant and providing a positive environment. +- Introduce yourself or ask a question on the [#webapp channel on Slack](https://app.slack.com/client/T0F5GHE8Y/CJJGJLN10). +- Find a [Jira](https://mifosforge.jira.com/browse/WEB) ticket to work on and start smashing! +- Sign up to the [mailing list](https://sourceforge.net/projects/mifos/lists/mifos-developer). - Learn more at our [getting started guide](https://mifosforge.jira.com/wiki/spaces/RES/pages/464322561/New+Contributor+Getting+Started+Guide). - Have a look at our [Wiki](https://github.com/openMF/web-app/wiki). -Please outline the change you wish to make via a Jira ticket _before_ you start contributing. And please do not create Jira tickets for general support questions, as we want to keep Jira for bug reports and feature requests. If you have got any questions, the quickest way to get an answer is to join the above Slack channel. You can also write an email on our [mailing list](https://sourceforge.net/projects/mifos/lists/mifos-developer). Mifos has quite a few active repositories, and each has its own Slack channel to direct questions to. +Tips for working with the web app repository: -Mifos is an inclusive community, committed to creating a safe, positive environment. Read the above Code of Conduct, and please follow it in all your interactions with the project. +- Learn how to [format pull requests](#submitting-a-pull-request). +- Read how to [rebase/merge upstream branches](#configuring-remotes). +- Understand our [commit message conventions](./.github/COMMIT_MESSAGE.md). -## Submitting or Requesting an Issue/Enhancement +## Our processes -### Best Practices for reporting or requesting for Issues/Enhancements: +### Reporting or requesting Issues/Enhancements -- Before you submit an issue, please search Jira. Maybe an issue for your problem already exists, and the discussion might inform you of workarounds readily available. -- Include screenshots if any (specially for UI related issues). +- Before you submit an issue in Jira, please browse existing issues or ask on Slack. Maybe an issue for your problem already exists, or the discussion might inform you of workarounds readily available. +- Include screenshots if helpful (specially for UI related issues). - For UI enhancements include mockups to provide a clear idea to the reader. -### Best Practices for getting assigned to work on an Issue/Enhancement: +### Getting assigned and working on an Issue/Enhancement -- If you would like to work on an issue, make sure it is not assigned to someone else. -- If you don't work on a Jira ticket, please unassign yourself. -- Please be sure that you are able to reproduce the issue, before working on it. If not, please ask for clarification by commenting or asking the issue creator. +- Always outline the change you wish to make via a Jira ticket _before_ contributing. +- Do not create Jira tickets for support questions. Jira is for bug reports and feature requests. (If you have questions, ask in the above Slack channel or write an email on the named mailing list.) +- If you would like to work on a Jira issue, make sure it is not assigned to someone else. (We do not appreciate pull requests for issues that are assigned to someone else or do not refer to a Jira ticket.) +- If you want to take over a ticket, ask the assignee in a comment (utilizing the "@" prefix), if you can. Wait 3 days, before you assign the ticket to yourself. +- If you don't work on a Jira ticket, unassign yourself. -**Note:** Please do not work on an issue which is assigned to someone else. We don't encourage creating multiple pull requests for the same issue. Also, please allow the assigned person at least 3 days to work on an issue. If there is no progress after this deadline, comment on the issue asking the contributor whether he/she is still working on it. Only if there is no reply after a couple of days, assign the ticket to you and work on it. +## Jira -### Jira ticket life cycle +Our Jira tickets follow the following life cycle: -- To Do: The issue is not prioritized yet. Make sure it make sense working on it by asking in Slack. +- To Do: The issue is not prioritized yet. Make sure it makes sense working on it by asking in Slack. - On Deck: The issue can be worked on, but work hasn't been started. Often the issue has already someone assigned to it. - In Progress: The issue is being worked on. - In Review: There is a Pull Request on GitHub or the ticket is on hold, because someone needs to review made changes. - Done: The Pull Request got merged on GitHub. - Canceled: The ticket is unnecessary and for some reason (probably in the comments) work on it became unnecessary. -## Submitting a Pull Request +Updating the Jira ticket is the responsibility of the person working on it. Make in particular sure the Status field is up-to-date. -### Best Practices to send Pull Requests: +## Git and Github + +### Best Practices to send Pull Requests - Fork the [project](https://github.com/openMF/web-app) on GitHub - Clone the project locally into your system. @@ -51,10 +55,10 @@ Mifos is an inclusive community, committed to creating a safe, positive environm git clone https://github.com/your-username/web-app.git ``` -- Make sure you are in the `main` branch. +- We use the `main` branch for releases, hotfixes and special purposes. All regular work on releases flows into the `dev` branch. ``` -git checkout main +git checkout dev ``` - Create a new branch with a meaningful name before adding and committing your changes. @@ -63,7 +67,7 @@ git checkout main git checkout -b branch-name ``` -- Add the files you changed. (avoid using `git add .`) +- Add the files you changed. (Better don't use `git add .`) ``` git add file-name @@ -81,7 +85,7 @@ git commit git commit --amend ``` -- Squash multiple commits to a single commit. (example: squash last two commits done on this branch into one) +- Squash multiple commits to a single commit. (Example: squash last two commits done on this branch into one.) ``` git rebase --interactive HEAD~2 @@ -90,7 +94,7 @@ git rebase --interactive HEAD~2 - Push this branch to your remote repository on GitHub. ``` -git push origin branch-name +git push --set-upstream origin branch-name ``` - If any of the squashed commits have already been pushed to your remote repository, you need to do a force push. @@ -99,13 +103,13 @@ git push origin branch-name git push origin remote-branch-name --force ``` -- Follow the Pull request template and submit a pull request with a motive for your change and the method you used to achieve it to be merged with the `main` branch. -- If you can, please submit the pull request with the fix or improvements including tests. -- During review, if you are requested to make changes, rebase your branch and squash the multiple commits into one again. Once you push these changes, the pull request will edit automatically. +- Follow the Pull request template and submit a pull request with a motive for your change and the method you used to achieve it to be merged with the `dev` branch. +- If possible, please submit the pull request along with tests. +- During review, if you are requested to make changes, rebase your branch and squash commits into one again. Once you push these changes, the pull request will edit automatically. -## Configuring remotes +### Configuring remotes -When a repository is cloned, it has a default remote called `origin` that points to your fork on GitHub, not the original repository it was forked from. To keep track of the original repository, you should add another remote called `upstream`. +When a repository is cloned, it has a default remote called `origin` that points to your fork on GitHub, not the original repository it was forked from. To keep track of the original repository, you can add another remote called `upstream`. 1. Set the `upstream`. @@ -122,18 +126,18 @@ git remote add upstream https://github.com/openMF/web-app.git > upstream https://github.com/openMF/web-app.git (push) ``` -3. To update your local copy with remote changes, run the following: (This will give you an exact copy of the current remote. You should not have any local changes on your main branch, if you do, use rebase instead.) +3. To update your local copy with remote changes, run the following: (This will give you an exact copy of the current remote. You should not have any local changes on your dev branch, if you do, use rebase instead.) ``` git fetch upstream -git checkout main -git merge upstream/main +git checkout dev +git merge upstream/dev ``` -4. Push these merged changes to the main branch on your fork. Ensure to pull in upstream changes regularly to keep your forked repository up to date. +4. Push these merged changes to the dev branch on your fork. (Ensure to pull in upstream changes regularly to keep your forked repository up to date. Or you use the "Sync fork" button on top of the Github page of your fork, followed by `git pull`.) ``` -git push origin main +git push origin dev ``` 5. Switch to the branch you are using for some piece of work. @@ -145,7 +149,7 @@ git checkout branch-name 6. Rebase your branch, which means, take in all latest changes and replay your work in the branch on top of this - this produces cleaner versions/history. ``` -git rebase main +git rebase dev ``` 7. Push the final changes when you're ready. @@ -154,9 +158,9 @@ git rebase main git push origin branch-name ``` -## After your Pull Request is merged +### After your Pull Request is merged -After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository. +After your pull request is merged, you can safely delete your branch and pull the changes from the dev (upstream) repository. 1. Delete the remote branch on GitHub. @@ -164,10 +168,10 @@ After your pull request is merged, you can safely delete your branch and pull th git push origin --delete branch-name ``` -2. Checkout the main branch. +2. Checkout the dev branch. ``` -git checkout main +git checkout dev ``` 3. Delete the local branch. @@ -176,14 +180,14 @@ git checkout main git branch -D branch-name ``` -4. Update your main branch with the latest upstream version. +4. Update your dev branch with the latest upstream version. ``` -git pull upstream main +git pull upstream dev ``` -## Skipping a Travis CI Build +### Skipping a Travis CI Build If running a build is not required for a particular commit (in some cases like an update to README.md), add [ci skip] or [skip ci] to the git commit message. Commits that have [ci skip] or [skip ci] anywhere in the commit messages are ignored by Travis CI. -That's it! Thank you for your contribution! +**_Thank you for contributing!_** diff --git a/package-lock.json b/package-lock.json index 277174e0e..be10bd3ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11276,7 +11276,9 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.7", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.9.tgz", + "integrity": "sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q==", "dev": true, "license": "MIT", "dependencies": { diff --git a/src/app/accounting/chart-of-accounts/gl-account-tree.service.ts b/src/app/accounting/chart-of-accounts/gl-account-tree.service.ts index 50f85ec38..f71ec0c59 100644 --- a/src/app/accounting/chart-of-accounts/gl-account-tree.service.ts +++ b/src/app/accounting/chart-of-accounts/gl-account-tree.service.ts @@ -92,7 +92,6 @@ export class GlAccountTreeService { // and rest as children to respective parent nodes. for (const glAccount of glAccountData) { if (glAccount.parentId === 0) { - console.log(glAccount.type.value); if (glAccount.type.value === 'ASSET') { glAccountTree[0].children[0].children.push(glAccounts[glAccount.id]); } else if (glAccount.type.value === 'EQUITY') { diff --git a/src/app/accounting/financial-activity-mappings/edit-financial-activity-mapping/edit-financial-activity-mapping.component.ts b/src/app/accounting/financial-activity-mappings/edit-financial-activity-mapping/edit-financial-activity-mapping.component.ts index dd4a16ab7..4881f40c2 100644 --- a/src/app/accounting/financial-activity-mappings/edit-financial-activity-mapping/edit-financial-activity-mapping.component.ts +++ b/src/app/accounting/financial-activity-mappings/edit-financial-activity-mapping/edit-financial-activity-mapping.component.ts @@ -46,7 +46,6 @@ export class EditFinancialActivityMappingComponent implements OnInit { ) { this.route.data.subscribe((data: { financialActivityAccountAndTemplate: any }) => { this.financialActivityAccountId = data.financialActivityAccountAndTemplate.id; - console.log(data.financialActivityAccountAndTemplate.financialActivityData); this.financialActivityId = data.financialActivityAccountAndTemplate.financialActivityData.id; this.glAccountId = data.financialActivityAccountAndTemplate.glAccountData.id; this.glAccountOptions = data.financialActivityAccountAndTemplate.glAccountOptions; diff --git a/src/app/clients/clients-view/identities-tab/identities-tab.component.html b/src/app/clients/clients-view/identities-tab/identities-tab.component.html index ac32dfede..8efbfdc5e 100644 --- a/src/app/clients/clients-view/identities-tab/identities-tab.component.html +++ b/src/app/clients/clients-view/identities-tab/identities-tab.component.html @@ -1,17 +1,21 @@
-

{{ 'labels.heading.Identities' | translate }}

+
+

+ {{ 'labels.heading.Identities' | translate }} +

- + +
- +
diff --git a/src/app/clients/clients-view/identities-tab/identities-tab.component.scss b/src/app/clients/clients-view/identities-tab/identities-tab.component.scss index ab1f2b480..daebb1815 100644 --- a/src/app/clients/clients-view/identities-tab/identities-tab.component.scss +++ b/src/app/clients/clients-view/identities-tab/identities-tab.component.scss @@ -3,7 +3,7 @@ margin: 1%; h3 { - margin: 1% auto; + margin: 0; } table { diff --git a/src/app/core/utils/accounting.ts b/src/app/core/utils/accounting.ts index 0ae38c357..2fc671a39 100644 --- a/src/app/core/utils/accounting.ts +++ b/src/app/core/utils/accounting.ts @@ -41,7 +41,7 @@ export class Accounting { 'ACCRUAL (UPFRONT)' ].includes(value)) { return 'Accrual (upfront)'; - } else if (value === 'CASH BASED') { + } else if (value.startsWith('CASH')) { return 'Cash'; } else if (value === 'NONE') { return 'NONE'; diff --git a/src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.ts b/src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.ts index 3c1e9a73c..3dcc4e2f1 100644 --- a/src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.ts +++ b/src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.ts @@ -68,7 +68,6 @@ export class FixedDepositAccountTermsStepComponent implements OnInit, OnChanges depositPeriod: this.fixedDepositsAccountTemplate.depositPeriod, depositPeriodFrequencyId: this.fixedDepositsAccountTemplate.depositPeriodFrequency.id }); - console.log(this.fixedDepositAccountTermsForm.value); } } 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 ee9db2a35..2aec8d4fd 100644 --- a/src/app/loans/common-resolvers/loan-action-button.resolver.ts +++ b/src/app/loans/common-resolvers/loan-action-button.resolver.ts @@ -31,8 +31,7 @@ export class LoanActionButtonResolver implements Resolve { return this.loansService.getLoanActionTemplate(loanId, 'repayment'); } else if (loanActionButton === 'Goodwill Credit') { return this.loansService.getLoanActionTemplate(loanId, 'goodwillCredit'); - } - if (loanActionButton === 'Interest Payment Waiver') { + } else if (loanActionButton === 'Interest Payment Waiver') { return this.loansService.getLoanActionTemplate(loanId, 'interestPaymentWaiver'); } else if (loanActionButton === 'Payout Refund') { return this.loansService.getLoanActionTemplate(loanId, 'payoutRefund'); @@ -74,6 +73,8 @@ export class LoanActionButtonResolver implements Resolve { return this.loansService.getLoanForeclosureActionTemplate(loanId); } else if (loanActionButton === 'Charge-Off') { return this.loansService.getLoanActionTemplate(loanId, 'charge-off'); + } else if (loanActionButton === 'Capitalized Income') { + return this.loansService.getLoanActionTemplate(loanId, 'capitalizedIncome'); } else { return undefined; } diff --git a/src/app/loans/loans-view/account-details/account-details.component.html b/src/app/loans/loans-view/account-details/account-details.component.html index d3054f6b1..d2ca451ec 100644 --- a/src/app/loans/loans-view/account-details/account-details.component.html +++ b/src/app/loans/loans-view/account-details/account-details.component.html @@ -94,6 +94,11 @@ {{ loanDetails.capitalizedIncomeStrategy?.value | translateKey: 'catalogs' }} +
+ {{ 'labels.inputs.Income capitalization type' | translate }} + {{ loanDetails.capitalizedIncomeType?.value | translateKey: 'catalogs' }} +
+
{{ 'labels.inputs.Grace: On Principal Payment' | translate }} {{ loanDetails.graceOnPrincipalPayment }} diff --git a/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts b/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts index 16ac5a2ce..2e8698724 100644 --- a/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts +++ b/src/app/loans/loans-view/datatable-tab/datatable-tab.component.ts @@ -6,7 +6,7 @@ import { ActivatedRoute } from '@angular/router'; templateUrl: './datatable-tab.component.html', styleUrls: ['./datatable-tab.component.scss'] }) -export class DatatableTabComponent { +export class DatatableTabComponent implements OnInit { entityId: string; /** Loan Datatable */ entityDatatable: any = null; @@ -25,4 +25,10 @@ export class DatatableTabComponent { this.multiRowDatatableFlag = this.entityDatatable.columnHeaders[0].columnName === 'id' ? true : false; }); } + + ngOnInit() { + this.route.parent.parent.params.subscribe((params) => { + this.entityId = params['loanId']; + }); + } } 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 c2e19b9e5..6fe516b83 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 @@ -7,6 +7,7 @@ + -
+
{{ 'Principal' | translate }}
diff --git a/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.ts b/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.ts index 48876247d..d9edc0d1d 100644 --- a/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/make-repayment/make-repayment.component.ts @@ -33,6 +33,8 @@ export class MakeRepaymentComponent implements OnInit { repaymentLoanForm: UntypedFormGroup; currency: Currency | null = null; + command: string | null = null; + /** * @param {FormBuilder} formBuilder Form Builder. * @param {LoansService} loanService Loan Service. @@ -62,6 +64,7 @@ export class MakeRepaymentComponent implements OnInit { if (this.dataObject.currency) { this.currency = this.dataObject.currency; } + this.command = this.dataObject.type.code.split('.')[1]; } /** @@ -110,6 +113,10 @@ export class MakeRepaymentComponent implements OnInit { } } + showDetails(): boolean { + return !['capitalizedIncome'].includes(this.command); + } + /** Submits the repayment form */ submit() { const repaymentLoanFormData = this.repaymentLoanForm.value; @@ -124,9 +131,8 @@ export class MakeRepaymentComponent implements OnInit { dateFormat, locale }; - const command = this.dataObject.type.code.split('.')[1]; data['transactionAmount'] = data['transactionAmount'] * 1; - this.loanService.submitLoanActionButton(this.loanId, data, command).subscribe((response: any) => { + this.loanService.submitLoanActionButton(this.loanId, data, this.command).subscribe((response: any) => { this.router.navigate(['../../transactions'], { relativeTo: this.route }); }); } diff --git a/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts b/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts index affc4b99e..4ec3ac270 100644 --- a/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts +++ b/src/app/loans/loans-view/loan-documents-tab/loan-documents-tab.component.ts @@ -1,5 +1,5 @@ /** Angular Imports */ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; /** Custom Services */ @@ -15,7 +15,7 @@ import { SettingsService } from 'app/settings/settings.service'; templateUrl: './loan-documents-tab.component.html', styleUrls: ['./loan-documents-tab.component.scss'] }) -export class LoanDocumentsTabComponent { +export class LoanDocumentsTabComponent implements OnInit { /** Stores the resolved loan documents data */ entityDocuments: any; /** Loan account Id */ @@ -38,6 +38,12 @@ export class LoanDocumentsTabComponent { }); } + ngOnInit(): void { + this.route.parent.params.subscribe((params) => { + this.entityId = params['loanId']; + }); + } + getLoanDocumentsData(data: any) { data.forEach((ele: any) => { ele.docUrl = diff --git a/src/app/loans/loans-view/loans-view.component.ts b/src/app/loans/loans-view/loans-view.component.ts index 4ada1128e..fac2f1356 100644 --- a/src/app/loans/loans-view/loans-view.component.ts +++ b/src/app/loans/loans-view/loans-view.component.ts @@ -82,6 +82,12 @@ export class LoansViewComponent implements OnInit { } ngOnInit() { + this.route.params.subscribe((params) => { + if (this.loanId != params['loanId']) { + this.loanId = params['loanId']; + this.reload(); + } + }); this.recalculateInterest = this.loanDetailsData.recalculateInterest || true; this.status = this.loanDetailsData.status.value; if (this.loanStatus.active && this.loanDetailsData.multiDisburseLoan) { @@ -129,6 +135,14 @@ export class LoansViewComponent implements OnInit { taskPermissionName: 'DISBURSE_LOAN' }); } else if (this.status === 'Active') { + if (this.loanDetailsData.enableIncomeCapitalization) { + this.buttonConfig.addButton({ + name: 'Capitalized Income', + icon: 'coins', + taskPermissionName: 'CAPITALIZED_INCOME_LOAN' + }); + } + if (this.loanDetailsData.canDisburse || this.loanDetailsData.multiDisburseLoan) { this.buttonConfig.addButton({ name: 'Disburse', diff --git a/src/app/loans/loans-view/notes-tab/notes-tab.component.ts b/src/app/loans/loans-view/notes-tab/notes-tab.component.ts index 6fcb6e9d6..83bff2c75 100644 --- a/src/app/loans/loans-view/notes-tab/notes-tab.component.ts +++ b/src/app/loans/loans-view/notes-tab/notes-tab.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; /** Custom Components */ @@ -12,7 +12,7 @@ import { AuthenticationService } from '../../../core/authentication/authenticati templateUrl: './notes-tab.component.html', styleUrls: ['./notes-tab.component.scss'] }) -export class NotesTabComponent { +export class NotesTabComponent implements OnInit { entityId: string; username: string; entityNotes: any; @@ -30,6 +30,12 @@ export class NotesTabComponent { }); } + ngOnInit(): void { + this.route.parent.params.subscribe((params) => { + this.entityId = params['loanId']; + }); + } + addNote(noteContent: any) { this.loansService.createLoanNote(this.entityId, noteContent).subscribe((response: any) => { this.entityNotes.push({ diff --git a/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.ts b/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.ts index 07118fb73..06a0ee188 100644 --- a/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.ts +++ b/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.ts @@ -112,7 +112,6 @@ export class ViewTransactionComponent implements OnInit { }); this.clientId = this.route.snapshot.params['clientId']; this.loanId = this.route.snapshot.params['loanId']; - console.log(this.transactionType); } ngOnInit(): void { diff --git a/src/app/products/charges/create-charge/create-charge.component.html b/src/app/products/charges/create-charge/create-charge.component.html index de19c1ae2..a02f78055 100644 --- a/src/app/products/charges/create-charge/create-charge.component.html +++ b/src/app/products/charges/create-charge/create-charge.component.html @@ -191,18 +191,6 @@ {{ 'labels.inputs.Amount' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} - - {{ 'labels.inputs.Amount' | translate }} {{ 'labels.commons.must be' | translate }} - {{ 'labels.commons.a positive number with' | translate }} - {{ currencyDecimalPlaces ? 'up to ' + currencyDecimalPlaces : 'no' }} - {{ 'labels.inputs.decimal places' | translate }} - - - {{ 'labels.inputs.Amount' | translate }} {{ 'labels.commons.must be' | translate }} - {{ 'labels.commons.a positive number' | translate }} -
{{ 'labels.inputs.Id' | translate }} {{ identity.id }}