Allow Loan re-aging transaction

This commit is contained in:
Jose Alberto Hernandez
2024-02-28 09:20:36 +01:00
committed by Adam Saghy
parent c6b134fc17
commit 36a8e275be
25 changed files with 297 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
import { Injectable } from '@angular/core';
import { OptionData } from 'app/shared/models/option-data.model';
@Injectable({
providedIn: 'root'
})
export class DropdownOptions {
public retrievePeriodFrequencyTypeOptions(includeAll: boolean): OptionData[] {
if (includeAll) {
return [
{ id: 0, code: 'DAYS', value: 'Days' },
{ id: 1, code: 'WEEKS', value: 'Weeks' },
{ id: 2, code: 'MONTHS', value: 'Months' },
{ id: 3, code: 'YEARS', value: 'Years' },
{ id: 4, code: 'WHOLE_TERM', value: 'Whole Term' },
{ id: 5, code: 'INVALID', value: 'Invalid' },
];
} else {
return [
{ id: 0, code: 'DAYS', value: 'Days' },
{ id: 1, code: 'WEEKS', value: 'Weeks' },
{ id: 2, code: 'MONTHS', value: 'Months' },
{ id: 3, code: 'YEARS', value: 'Years' }
];
}
}
}