diff --git a/src/app/current-accounts/common-resolvers/current-account-actions.resolver.ts b/src/app/current-accounts/common-resolvers/current-account-actions.resolver.ts
index 9197404d6..fbc813881 100644
--- a/src/app/current-accounts/common-resolvers/current-account-actions.resolver.ts
+++ b/src/app/current-accounts/common-resolvers/current-account-actions.resolver.ts
@@ -69,6 +69,7 @@ export class CurrentAccountActionsResolver {
this.currentAccountsService.getCurrentAccountTransactionTemplateResource(currentAccountId),
this.currentAccountsService.getCurrentAccountData(currentAccountId)
]);
+ case 'Activate':
case 'Apply Annual Fees':
return this.currentAccountsService.getCurrentAccountData(currentAccountId);
default:
diff --git a/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.html b/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.html
index 19abc5fdc..7b9e69031 100644
--- a/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.html
+++ b/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.html
@@ -30,6 +30,18 @@
}
+
+
+ Opening Balance
+
+ ₹
+ @if (minRequiredOpeningBalance) {
+ Minimum required: ₹{{ minRequiredOpeningBalance }}
+ }
+ @if (activateCurrentAccountForm.controls.openingBalance.hasError('min')) {
+ Opening balance must be at least ₹{{ minRequiredOpeningBalance ?? 0 }}
+ }
+
diff --git a/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.ts b/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.ts
index ae85c6d92..98701b637 100644
--- a/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.ts
+++ b/src/app/current-accounts/current-account-actions/activate-current-account/activate-current-account.component.ts
@@ -7,7 +7,7 @@
*/
/** Angular Imports */
-import { Component, OnInit, inject } from '@angular/core';
+import { Component, OnInit, Input, inject } from '@angular/core';
import { UntypedFormGroup, UntypedFormBuilder, Validators, ReactiveFormsModule } from '@angular/forms';
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
import { Dates } from 'app/core/utils/dates';
@@ -36,6 +36,8 @@ export class ActivateCurrentAccountComponent implements OnInit {
private router = inject(Router);
private settingsService = inject(SettingsService);
+ @Input() minRequiredOpeningBalance: number | null = null;
+
/** Minimum date allowed. */
minDate = new Date(2000, 0, 1);
/** Maximum date allowed. */
@@ -69,10 +71,18 @@ export class ActivateCurrentAccountComponent implements OnInit {
* Creates the activate current account form.
*/
createActivateCurrentAccountForm() {
+ const minBalance = this.minRequiredOpeningBalance ?? 0;
this.activateCurrentAccountForm = this.formBuilder.group({
activatedOnDate: [
'',
Validators.required
+ ],
+ openingBalance: [
+ minBalance,
+ [
+ Validators.required,
+ Validators.min(minBalance)
+ ]
]
});
}
diff --git a/src/app/current-accounts/current-account-actions/current-account-actions.component.html b/src/app/current-accounts/current-account-actions/current-account-actions.component.html
index b1442a445..b89775310 100644
--- a/src/app/current-accounts/current-account-actions/current-account-actions.component.html
+++ b/src/app/current-accounts/current-account-actions/current-account-actions.component.html
@@ -13,7 +13,9 @@
}
@if (actions['Activate']) {
-
+
}
@if (actions['Undo Approval']) {
diff --git a/src/app/current-accounts/current-account-actions/current-account-actions.component.ts b/src/app/current-accounts/current-account-actions/current-account-actions.component.ts
index ac9d3bbc3..7cd7c51be 100644
--- a/src/app/current-accounts/current-account-actions/current-account-actions.component.ts
+++ b/src/app/current-accounts/current-account-actions/current-account-actions.component.ts
@@ -102,10 +102,13 @@ export class CurrentAccountActionsComponent {
/**
* @param {ActivatedRoute} route Activated Route
*/
+ accountData: any;
+
constructor() {
this.route.data.subscribe((data: { currentAccountActionData: any }) => {
if (data.currentAccountActionData) {
this.currency = data.currentAccountActionData.currency;
+ this.accountData = data.currentAccountActionData;
}
});
const name = this.route.snapshot.params['name'] as string;
diff --git a/src/app/current-accounts/current-account-view/charges-tab/charges-tab.component.html b/src/app/current-accounts/current-account-view/charges-tab/charges-tab.component.html
index b9d8150c5..e13ff2c12 100644
--- a/src/app/current-accounts/current-account-view/charges-tab/charges-tab.component.html
+++ b/src/app/current-accounts/current-account-view/charges-tab/charges-tab.component.html
@@ -43,44 +43,46 @@
| {{ 'labels.inputs.Due As Of' | translate }} |
- {{ charge.dueDate | dateFormat }} |
+ {{ charge.chargeDueDate | dateFormat }} |
{{ 'labels.inputs.Repeats On (M/d)' | translate }} |
- {{ charge.feeOnMonthDay ? charge.feeOnMonthDay.join('/') : '' }} |
+
+ {{ charge.feeOnMonthDay ? charge.feeOnMonthDay.month + '/' + charge.feeOnMonthDay.day : '' }}
+ |
{{ 'labels.inputs.Calculation Type' | translate }} |
- {{ charge.chargeCalculationType.value | translateKey: 'catalogs' }} |
+ {{ charge.chargeCalculationType?.value | translateKey: 'catalogs' }} |
{{ 'labels.inputs.Due' | translate }} |
- {{ charge.amount | currency: charge.currency.code : 'symbol-narrow' : '1.2-2' }}
+ {{ charge.amount | currency: currentAccountData.currency.code : 'symbol-narrow' : '1.2-2' }}
|
{{ 'labels.inputs.Paid' | translate }} |
- {{ charge.amountPaid | currency: charge.currency.code : 'symbol-narrow' : '1.2-2' }}
+ {{ charge.amountPaid | currency: currentAccountData.currency.code : 'symbol-narrow' : '1.2-2' }}
|
{{ 'labels.inputs.Waived' | translate }} |
- {{ charge.amountWaived | currency: charge.currency.code : 'symbol-narrow' : '1.2-2' }}
+ {{ charge.amountWaived | currency: currentAccountData.currency.code : 'symbol-narrow' : '1.2-2' }}
|
{{ 'labels.inputs.Outstanding' | translate }} |
- {{ charge.amountOutstanding | currency: charge.currency.code : 'symbol-narrow' : '1.2-2' }}
+ {{ charge.amountOutstanding | currency: currentAccountData.currency.code : 'symbol-narrow' : '1.2-2' }}
|
diff --git a/src/app/current-accounts/current-account-view/current-account-view.component.ts b/src/app/current-accounts/current-account-view/current-account-view.component.ts
index 67746577e..f6b6522a2 100644
--- a/src/app/current-accounts/current-account-view/current-account-view.component.ts
+++ b/src/app/current-accounts/current-account-view/current-account-view.component.ts
@@ -127,7 +127,7 @@ export class CurrentAccountViewComponent implements OnInit {
*/
setConditionalButtons() {
const status = this.currentAccountData.status.value;
- this.isActive = status === 'Active';
+ this.isActive = status === 'Active' || status === 'active';
const subStatus = this.currentAccountData.subStatus;
this.buttonConfig = new CurrentAccountButtonsConfiguration(status, subStatus);
if (this.currentAccountData.clientId) {
diff --git a/src/app/current-accounts/current-account-view/current-accounts-buttons.config.ts b/src/app/current-accounts/current-account-view/current-accounts-buttons.config.ts
index 8c56acba3..e72cc8c0b 100644
--- a/src/app/current-accounts/current-account-view/current-accounts-buttons.config.ts
+++ b/src/app/current-accounts/current-account-view/current-accounts-buttons.config.ts
@@ -109,6 +109,7 @@ export class CurrentAccountButtonsConfiguration {
];
}
break;
+ case 'Submitted and Pending Approval':
case 'Submitted and pending approval':
this.buttonsArray = [
{
@@ -165,6 +166,7 @@ export class CurrentAccountButtonsConfiguration {
}
];
break;
+ case 'Submitted and Pending Approval':
case 'Submitted and pending approval':
this.optionArray = [
{
diff --git a/src/app/current-accounts/current-account-view/passbook-tab/passbook-tab.component.html b/src/app/current-accounts/current-account-view/passbook-tab/passbook-tab.component.html
index 8b4a9dbbd..913e893d7 100644
--- a/src/app/current-accounts/current-account-view/passbook-tab/passbook-tab.component.html
+++ b/src/app/current-accounts/current-account-view/passbook-tab/passbook-tab.component.html
@@ -24,13 +24,7 @@
-