Fix for Loan repayment issues

This commit is contained in:
Jose Alberto Hernandez
2022-05-25 15:54:40 -05:00
parent 01abdde8ab
commit 2ff463438c
5 changed files with 28 additions and 4 deletions
@@ -28,8 +28,8 @@ export class LoanActionButtonResolver implements Resolve<Object> {
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 === 'Make Repayment') {
return this.loansService.getLoanActionTemplate(loanId, 'repayment');
} else if (loanActionButton === 'Waive Interest') {
return this.loansService.getLoanActionTemplate(loanId, 'waiveinterest');
} else if (loanActionButton === 'Write Off') {
@@ -83,7 +83,7 @@
</div>
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['../../../general']">Cancel</button>
<button type="button" mat-raised-button [routerLink]="['../../general']">Cancel</button>
<button mat-raised-button color="primary" [disabled]="!repaymentLoanForm.valid"
*mifosxHasPermission="'REPAYMENT_LOAN'">Submit</button>
</mat-card-actions>
@@ -55,7 +55,7 @@ export class MakeRepaymentComponent implements OnInit {
*/
ngOnInit() {
this.createRepaymentLoanForm();
// this.setRepaymentLoanDetails();
this.setRepaymentLoanDetails();
}
/**