Fix for Credit loan transaction
This commit is contained in:
committed by
Arnold Gálovics
parent
66514f0936
commit
9a23ceb772
@@ -23,6 +23,9 @@
|
|||||||
<br />
|
<br />
|
||||||
<span *ngIf="loanDetailsData.clientName"> Client Name: {{loanDetailsData.clientName}} </span> <br />
|
<span *ngIf="loanDetailsData.clientName"> Client Name: {{loanDetailsData.clientName}} </span> <br />
|
||||||
<span *ngIf="loanDetailsData.group"> Group Name: {{loanDetailsData.group.name}} </span>
|
<span *ngIf="loanDetailsData.group"> Group Name: {{loanDetailsData.group.name}} </span>
|
||||||
|
<span *ngIf="loanDetailsData.delinquencyRange">
|
||||||
|
Loan Account Classification : {{loanDetailsData?.delinquencyRange.classification}}
|
||||||
|
</span>
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<ng-container *ngIf="loanDetails.delinquencyRange">
|
|
||||||
<h3>Loan Account Classification : {{loanDetails?.delinquencyRange.classification}}</h3>
|
|
||||||
</ng-container>
|
|
||||||
|
|
||||||
<table mat-table [dataSource]="repaymentScheduleDetails.periods">
|
<table mat-table [dataSource]="repaymentScheduleDetails.periods">
|
||||||
|
|
||||||
<ng-container matColumnDef="number">
|
<ng-container matColumnDef="number">
|
||||||
|
|||||||
@@ -74,7 +74,8 @@ export class TransactionsTabComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
showTransactions(transactionsData: any) {
|
showTransactions(transactionsData: any) {
|
||||||
if (transactionsData.type.id === 2 || transactionsData.type.id === 4 || transactionsData.type.id === 1
|
if (transactionsData.type.id === 2 || transactionsData.type.id === 4 || transactionsData.type.id === 1
|
||||||
|| transactionsData.type.id === 21 || transactionsData.type.id === 22 || transactionsData.type.id === 23) {
|
|| transactionsData.type.id === 20 || transactionsData.type.id === 21 || transactionsData.type.id === 22
|
||||||
|
|| transactionsData.type.id === 23) {
|
||||||
this.router.navigate([transactionsData.id], { relativeTo: this.route });
|
this.router.navigate([transactionsData.id], { relativeTo: this.route });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
<div fxLayoutAlign="end" class="container m-b-20 transaction-buttons" fxLayoutGap="2%"
|
<div fxLayoutAlign="end" class="container m-b-20 transaction-buttons" fxLayoutGap="2%"
|
||||||
*ngIf="!(transactionData.type.contra)">
|
*ngIf="!(transactionData.type.contra)">
|
||||||
<span *mifosxHasPermission="'ADJUST_LOAN'">
|
<span *mifosxHasPermission="'ADJUST_LOAN'">
|
||||||
<button mat-raised-button color="primary" [routerLink]="'edit'">
|
<button mat-raised-button color="primary" [routerLink]="'edit'" *ngIf="allowEdition">
|
||||||
<fa-icon icon="edit"></fa-icon> Edit
|
<fa-icon icon="edit"></fa-icon> Edit
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ export class ViewTransactionComponent {
|
|||||||
|
|
||||||
/** Transaction data. */
|
/** Transaction data. */
|
||||||
transactionData: any;
|
transactionData: any;
|
||||||
|
/** Is Editable */
|
||||||
|
allowEdition = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the Transaction data from `resolve`.
|
* Retrieves the Transaction data from `resolve`.
|
||||||
@@ -42,6 +44,8 @@ export class ViewTransactionComponent {
|
|||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService) {
|
||||||
this.route.data.subscribe((data: { loansAccountTransaction: any }) => {
|
this.route.data.subscribe((data: { loansAccountTransaction: any }) => {
|
||||||
this.transactionData = data.loansAccountTransaction;
|
this.transactionData = data.loansAccountTransaction;
|
||||||
|
this.allowEdition = !(this.transactionData.type.id === 20 || this.transactionData.type.id === 21 || this.transactionData.type.id === 22
|
||||||
|
|| this.transactionData.type.id === 23);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user