i18n: Adding new languages: Part 2 (#1885)

Co-authored-by: radhathakare <radhathakare322@gmail.com>
This commit is contained in:
José Alberto Hernández
2023-10-25 22:42:07 -06:00
committed by GitHub
co-authored by radhathakare
parent 408f004450
commit 3c625d81c4
177 changed files with 36476 additions and 35908 deletions
@@ -27,9 +27,14 @@ export class ManageSavingsAccountComponent implements OnInit {
transactionType: {
holdamount: boolean,
blockaccount: boolean
blockaccount: boolean,
blockdeposit: boolean,
blockwithdrawal: boolean
} = {
holdamount: false, blockaccount: false
holdamount: false,
blockaccount: false,
blockdeposit: false,
blockwithdrawal: false
};
/**
@@ -58,7 +63,8 @@ export class ManageSavingsAccountComponent implements OnInit {
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createManageSavingsAccountForm();
if (this.transactionType.holdamount || this.transactionType.blockaccount) {
if (this.transactionType.holdamount || this.transactionType.blockaccount
|| this.transactionType.blockdeposit || this.transactionType.blockwithdrawal) {
this.getCodeValues();
}
}
@@ -67,6 +73,10 @@ export class ManageSavingsAccountComponent implements OnInit {
let codeName = 'SavingsTransactionFreezeReasons'; // Default Hold Amount
if (this.transactionType.blockaccount) {
codeName = 'SavingsAccountBlockReasons';
} else if (this.transactionType.blockdeposit) {
codeName = 'CreditTransactionFreezeReasons';
} else if (this.transactionType.blockwithdrawal) {
codeName = 'DebitTransactionFreezeReasons';
}
this.systemService.getCodes().subscribe((codes: any) => {
@@ -126,6 +136,11 @@ export class ManageSavingsAccountComponent implements OnInit {
... this.manageSavingsAccountForm.value
};
command = 'block';
if (this.transactionType.blockdeposit) {
command = 'blockCredit';
} else if (this.transactionType.blockwithdrawal) {
command = 'blockDebit';
}
this.savingsService.executeSavingsAccountCommand(this.savingAccountId, command, payload).subscribe((response: any) => {
this.router.navigate(['../../transactions'], { relativeTo: this.route });