Fixed Length configuration in Loan Accounts

This commit is contained in:
Jose Alberto Hernandez
2024-03-19 07:56:04 -06:00
committed by Jose Alberto Hernandez
parent e4274c55bb
commit 466efacbd8
24 changed files with 163 additions and 79 deletions
@@ -177,7 +177,7 @@
</tr>
<tr *ngIf="savingsAccountData.enforceMinRequiredBalance">
<td>{{'labels.inputs.Enforce Minimum Required Balance' | translate}}</td>
<td>{{savingsAccountData.enforceMinRequiredBalance | formatNumber}}</td>
<td>{{savingsAccountData.enforceMinRequiredBalance | yesNo}}</td>
</tr>
<tr *ngIf="savingsAccountData.summary.lastInterestCalculationDate">
<td>{{'labels.inputs.Interest Recalculation Date' | translate}}</td>
@@ -59,11 +59,13 @@ export class TransactionsTabComponent implements OnInit {
this.accountWithTransactions = (this.transactionsData && this.transactionsData.length > 0);
this.dataSource.paginator = this.paginator;
this.dataSource.sort = this.sort;
this.tempTransaction.forEach((element: any) => {
if (this.isAccrual(element.transactionType)) {
this.tempTransaction = this.removeItem(this.tempTransaction, element);
}
});
if (this.tempTransaction) {
this.tempTransaction.forEach((element: any) => {
if (this.isAccrual(element.transactionType)) {
this.tempTransaction = this.removeItem(this.tempTransaction, element);
}
});
}
}
private removeItem(arr: any, item: any) {
@@ -65,7 +65,7 @@ export class SavingsTransactionGeneralTabComponent implements OnInit {
locale
};
this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId, 'undo', data, this.transactionData.id).subscribe(() => {
this.router.navigate(['../'], { relativeTo: this.route });
this.router.navigate(['../..'], { relativeTo: this.route });
});
}
});