Support for Charge-off and Undo charge-off to Loan account (#1748)
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
d294885f00
commit
b2aa39cb67
@@ -35,6 +35,7 @@ import { DirectivesModule } from 'app/directives/directives.module';
|
||||
import { EntityDatatableTabComponent } from './tabs/entity-datatable-tab/entity-datatable-tab.component';
|
||||
import { DatatableSingleRowComponent } from './tabs/entity-datatable-tab/datatable-single-row/datatable-single-row.component';
|
||||
import { DatatableMultiRowComponent } from './tabs/entity-datatable-tab/datatable-multi-row/datatable-multi-row.component';
|
||||
import { SvgIconComponent } from './svg-icon/svg-icon.component';
|
||||
|
||||
/**
|
||||
* Shared Module
|
||||
@@ -75,7 +76,8 @@ import { DatatableMultiRowComponent } from './tabs/entity-datatable-tab/datatabl
|
||||
EntityDocumentsTabComponent,
|
||||
EntityDatatableTabComponent,
|
||||
DatatableSingleRowComponent,
|
||||
DatatableMultiRowComponent
|
||||
DatatableMultiRowComponent,
|
||||
SvgIconComponent
|
||||
],
|
||||
exports: [
|
||||
FileUploadComponent,
|
||||
@@ -96,7 +98,8 @@ import { DatatableMultiRowComponent } from './tabs/entity-datatable-tab/datatabl
|
||||
ExternalIdentifierComponent,
|
||||
EntityNotesTabComponent,
|
||||
EntityDocumentsTabComponent,
|
||||
EntityDatatableTabComponent
|
||||
EntityDatatableTabComponent,
|
||||
SvgIconComponent
|
||||
]
|
||||
})
|
||||
export class SharedModule { }
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<svg preserveAspectRatio="xMidYMid meet" class="icon" [ngClass]="iconClass" [style.width.px]="iconWidth">
|
||||
<use [attr.xlink:href]="'assets/images/icons_' + iconFile + '.svg#' + iconName"></use>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 202 B |
@@ -0,0 +1,9 @@
|
||||
@import "assets/styles/helper";
|
||||
|
||||
.icon {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.chargeoff {
|
||||
color: #ffa726;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SvgIconComponent } from './svg-icon.component';
|
||||
|
||||
describe('SvgIconComponent', () => {
|
||||
let component: SvgIconComponent;
|
||||
let fixture: ComponentFixture<SvgIconComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ SvgIconComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(SvgIconComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'mifosx-svg-icon',
|
||||
templateUrl: './svg-icon.component.html',
|
||||
styleUrls: ['./svg-icon.component.scss']
|
||||
})
|
||||
export class SvgIconComponent implements OnInit {
|
||||
@Input() iconFile: string;
|
||||
@Input() iconName: string;
|
||||
@Input() iconClass: string;
|
||||
@Input() iconWidth: string;
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit(): void {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user