Skip to content

Commit

Permalink
poc
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT committed Feb 5, 2025
1 parent 7110f3a commit 0642d91
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/app/core/models/common/export-settings.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class ExportSettingModel {

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

Check failure on line 138 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
const excludedDate = expenseGrouping === 'expense'
const excludedDate = expenseGrouping === ExpenseGroupingFieldOption.EXPENSE_ID
? ExportDateType.LAST_SPENT_AT

Check failure on line 140 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
: ExportDateType.SPENT_AT;

Check failure on line 142 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
Expand All @@ -154,10 +154,16 @@ export class ExportSettingModel {
}

filterOptions.push(excludedDate);

return dateOptions.filter((item): item is { label: string; value: ExportDateType } =>

console.log(filterOptions, excludedDate)

Check failure on line 158 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check failure on line 158 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

const d = dateOptions.filter((item): item is { label: string; value: ExportDateType } =>
item.value !== null && !filterOptions.includes(item.value as ExportDateType))

Check failure on line 161 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

console.log(d)

Check failure on line 163 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement

Check failure on line 163 in src/app/core/models/common/export-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon

return d;

}

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

0 comments on commit 0642d91

Please sign in to comment.