Skip to content

Commit 0642d91

Browse files
committed
poc
1 parent 7110f3a commit 0642d91

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/app/core/models/common/export-settings.model.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class ExportSettingModel {
136136

137137
static dateGrouping(exportType:string, expenseGrouping: string, showApprovedDate: boolean, showVerificationDate: boolean): SelectFormOption[] {
138138

139-
const excludedDate = expenseGrouping === 'expense'
139+
const excludedDate = expenseGrouping === ExpenseGroupingFieldOption.EXPENSE_ID
140140
? ExportDateType.LAST_SPENT_AT
141141
: ExportDateType.SPENT_AT;
142142

@@ -154,10 +154,16 @@ export class ExportSettingModel {
154154
}
155155

156156
filterOptions.push(excludedDate);
157-
158-
return dateOptions.filter((item): item is { label: string; value: ExportDateType } =>
157+
158+
console.log(filterOptions, excludedDate)
159+
160+
const d = dateOptions.filter((item): item is { label: string; value: ExportDateType } =>
159161
item.value !== null && !filterOptions.includes(item.value as ExportDateType))
160162

163+
console.log(d)
164+
165+
return d;
166+
161167
}
162168

163169
static filterDateOptions(exportDateType: ExportDateType, dateOptions: SelectFormOption[]){

0 commit comments

Comments
 (0)