Savings account actions missed (#1611)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2022-12-30 18:41:17 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 85e3d99e9f
commit 5275657752
66 changed files with 125 additions and 85 deletions
@@ -45,7 +45,7 @@
<div fxFlexFill>
<span fxFlex="75%" class="expandcollapsebutton m-l-10 m-t-40" (click)="addPaymentDetails()">
<mat-slide-toggle [(ngModel)]="showPaymentDetails">
<mat-slide-toggle [(ngModel)]="showPaymentDetails" [ngModelOptions]="{standalone: true}">
<div [className]="showPaymentDetails ? 'enabled' : 'disabled'">
<span class="m-l-10">Show Payment Details</span>
</div>
@@ -39,7 +39,7 @@
<div fxFlexFill>
<span fxFlex="75%" class="expandcollapsebutton m-l-10 m-t-40" (click)="addPaymentDetails()">
<mat-slide-toggle [(ngModel)]="addPaymentDetailsFlag">
<mat-slide-toggle [(ngModel)]="addPaymentDetailsFlag" [ngModelOptions]="{standalone: true}">
<div [className]="addPaymentDetailsFlag ? 'enabled' : 'disabled'">
<span class="m-l-10">Show Payment Details</span>
</div>
@@ -47,34 +47,34 @@
</span>
</div>
<mat-form-field *ngIf="savingAccountTransactionForm.controls['accountNumber']">
<mat-form-field *ngIf="addPaymentDetailsFlag">
<mat-label>Account Number</mat-label>
<input type="number" formControlName="accountNumber" matInput />
</mat-form-field>
<mat-form-field *ngIf="savingAccountTransactionForm.controls['checkNumber']">
<mat-form-field *ngIf="addPaymentDetailsFlag">
<mat-label>Cheque</mat-label>
<input type="number" formControlName="checkNumber" matInput />
</mat-form-field>
<mat-form-field *ngIf="savingAccountTransactionForm.controls['routingCode']">
<mat-form-field *ngIf="addPaymentDetailsFlag">
<mat-label>Routing Code</mat-label>
<input formControlName="routingCode" matInput />
</mat-form-field>
<mat-form-field *ngIf="savingAccountTransactionForm.controls['receiptNumber']">
<mat-form-field *ngIf="addPaymentDetailsFlag">
<mat-label>Receipt Number</mat-label>
<input formControlName="receiptNumber" matInput />
</mat-form-field>
<mat-form-field *ngIf="savingAccountTransactionForm.controls['bankNumber']">
<mat-form-field *ngIf="addPaymentDetailsFlag">
<mat-label>Bank</mat-label>
<input formControlName="bankNumber" matInput />
</mat-form-field>
<mat-form-field>
<mat-label>Notes</mat-label>
<textarea formControlName="note" matInput></textarea>
<textarea formControlName="note" matInput cdkTextareaAutosize cdkAutosizeMinRows="2"></textarea>
</mat-form-field>
<mat-card-actions fxLayoutGap="5px" fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center">
@@ -89,6 +89,7 @@ export class SavingsAccountTransactionsComponent implements OnInit {
*/
addPaymentDetails() {
this.addPaymentDetailsFlag = !this.addPaymentDetailsFlag;
/*
if (this.addPaymentDetailsFlag) {
this.savingAccountTransactionForm.addControl('accountNumber', new FormControl(''));
this.savingAccountTransactionForm.addControl('checkNumber', new FormControl(''));
@@ -102,6 +103,8 @@ export class SavingsAccountTransactionsComponent implements OnInit {
this.savingAccountTransactionForm.removeControl('receiptNumber');
this.savingAccountTransactionForm.removeControl('bankNumber');
}
*/
}
/**
@@ -143,7 +143,7 @@ export class SavingsAccountViewComponent implements OnInit {
case 'Apply Annual Fees':
this.router.navigate([`actions/${name}`], { relativeTo: this.route });
break;
case 'Withdraw':
case 'Withdrawal':
this.router.navigate([`actions/Withdrawal`], { relativeTo: this.route });
break;
case 'Modify Application':
+1 -1
View File
@@ -178,7 +178,7 @@ const routes: Routes = [
},
{
path: 'actions/:name',
data: { title: extract('Savings Account Actions'), breadcrumb: 'name', routeParamBreadcrumb: false },
data: { title: extract('Savings Account Actions'), breadcrumb: 'Savings Account Actions', routeParamBreadcrumb: 'name' },
component: SavingAccountActionsComponent,
resolve: {
savingsAccountActionData: SavingsAccountActionsResolver