feat: savings account view charge (#939)

Fixes: #938
This commit is contained in:
Karan Takalkar
2020-06-27 23:22:22 +05:30
committed by GitHub
parent 6ed67a763d
commit 222681b916
21 changed files with 602 additions and 14 deletions
@@ -0,0 +1,8 @@
<h1 mat-dialog-title>Inactivate Charge</h1>
<div mat-dialog-content>
<p>Are you sure you want to inactivate charge with id: {{ data.id }} ?</p>
</div>
<mat-dialog-actions align="end">
<button mat-raised-button mat-dialog-close>Cancel</button>
<button mat-raised-button color="primary" [mat-dialog-close]="{ confirm: true }">Confirm</button>
</mat-dialog-actions>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { InactivateChargeDialogComponent } from './inactivate-charge-dialog.component';
describe('InactivateChargeDialogComponent', () => {
let component: InactivateChargeDialogComponent;
let fixture: ComponentFixture<InactivateChargeDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ InactivateChargeDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(InactivateChargeDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,22 @@
/** Angular Imports */
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
/**
* Inactivate charge dialog component.
*/
@Component({
selector: 'mifosx-inactivate-charge-dialog',
templateUrl: './inactivate-charge-dialog.component.html',
styleUrls: ['./inactivate-charge-dialog.component.scss']
})
export class InactivateChargeDialogComponent {
/**
* @param {MatDialogRef} dialogRef Component reference to dialog.
* @param {any} data.
*/
constructor(public dialogRef: MatDialogRef<InactivateChargeDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { }
}
@@ -0,0 +1,8 @@
<h1 mat-dialog-title>Waive Charge</h1>
<div mat-dialog-content>
<p>Are you sure you want to waive charge with id: {{ data.id }} ?</p>
</div>
<mat-dialog-actions align="end">
<button mat-raised-button mat-dialog-close>Cancel</button>
<button mat-raised-button color="primary" [mat-dialog-close]="{ confirm: true }">Confirm</button>
</mat-dialog-actions>
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WaiveChargeDialogComponent } from './waive-charge-dialog.component';
describe('WaiveChargeDialogComponent', () => {
let component: WaiveChargeDialogComponent;
let fixture: ComponentFixture<WaiveChargeDialogComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ WaiveChargeDialogComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(WaiveChargeDialogComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,22 @@
/** Angular Imports */
import { Component, Inject } from '@angular/core';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
/**
* Waive charge dialog component.
*/
@Component({
selector: 'mifosx-waive-charge-dialog',
templateUrl: './waive-charge-dialog.component.html',
styleUrls: ['./waive-charge-dialog.component.scss']
})
export class WaiveChargeDialogComponent {
/**
* @param {MatDialogRef} dialogRef Component reference to dialog.
* @param {any} data.
*/
constructor(public dialogRef: MatDialogRef<WaiveChargeDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { }
}