{{ 'labels.heading.Interest Rate Charts' | translate }}

@for (chart of charts.controls; track chart; let chartIndex = $index) {
{{ 'labels.inputs.Name' | translate }} @if (chart.get('name')?.touched && chart.get('name')?.hasError('required')) { {{ 'labels.inputs.Name' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.Description' | translate }} @if (chart.get('description')?.touched && chart.get('description')?.hasError('required')) { {{ 'labels.inputs.Description' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} } {{ 'labels.inputs.From Date' | translate }} {{ 'labels.inputs.From Date' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} {{ 'labels.inputs.End Date' | translate }}
{{ 'labels.inputs.Is primary grouping by amount?' | translate }}
@if (chart.value.chartSlabs.length === 0) {

{{ 'labels.heading.It is required to add at least one Slab' | translate }}

} @if (chart.value.chartSlabs.length !== 0) {
{{ 'labels.inputs.Period' | translate }} {{ chartSlab.fromPeriod + ' - ' + chartSlab.toPeriod + ' ' + (chartSlab.periodType | find: periodTypeData : 'id' : 'value') }} {{ 'labels.inputs.Amount Range' | translate }} {{ chartSlab.amountRangeFrom + ' - ' + chartSlab.amountRangeTo }} {{ 'labels.inputs.Interest' | translate }} {{ chartSlab.annualInterestRate }} {{ 'labels.inputs.Description' | translate }} {{ chartSlab.description }} {{ 'labels.inputs.Actions' | translate }}

{{ 'labels.heading.Incentives' | translate }}

@if (chartSlab.incentives.length) {
{{ 'labels.inputs.Entity Type' | translate }} {{ incentive.entityType | find: entityTypeData : 'id' : 'value' }} {{ 'labels.inputs.Attribute Name' | translate }} {{ incentive.attributeName | find: attributeNameData : 'id' : 'value' }} {{ 'labels.inputs.Condition Type' | translate }} {{ incentive.conditionType | find: conditionTypeData : 'id' : 'value' }} {{ 'labels.inputs.Attribute Value' | translate }} @switch (incentive.attributeName) { @case (2) { {{ incentive.attributeValue | find: genderData : 'id' : 'name' }} } @case (3) { {{ incentive.attributeValue }} } @case (4) { {{ incentive.attributeValue | find: clientTypeData : 'id' : 'name' }} } @case (5) { {{ incentive.attributeValue | find: clientClassificationData : 'id' : 'name' }} } } {{ 'labels.inputs.Incentive Type' | translate }} {{ incentive.incentiveType | find: incentiveTypeData : 'id' : 'value' }} {{ 'labels.inputs.Interest' | translate }} {{ incentive.amount }} {{ 'labels.inputs.Actions' | translate }}
}
}
}