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:
José Alberto Hernández
2023-05-09 22:09:45 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent d294885f00
commit b2aa39cb67
94 changed files with 863 additions and 481 deletions
@@ -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 {
}
}