Skip to content

Commit

Permalink
fix: years indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
jonat75 committed Jan 15, 2025
1 parent d994770 commit 13094f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { YEARS } from "@common/dict";
import { ALL_YEARS } from "@common/dict";
import { TupleNumber } from "@common/shared-domain/domain/valueObjects/TupleNumber";

export class DeclarationIndicatorsYear extends TupleNumber {
constructor(value: number) {
super(value, YEARS);
super(value, ALL_YEARS);
}
}
2 changes: 1 addition & 1 deletion packages/app/src/common/dict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const OPMC_OPEN_DURATION_AFTER_EDIT = 2;
export const CURRENT_YEAR = 2024 as const;
/** Need to be set */
export const PUBLIC_CURRENT_YEAR = 2023;

export const ALL_YEARS = times(CURRENT_YEAR - FIRST_YEAR + 1, idx => FIRST_YEAR + idx);
export const YEARS = times(CURRENT_YEAR - FIRST_DECLARATION_YEAR + 1, idx => FIRST_DECLARATION_YEAR + idx);
export const ADMIN_YEARS = times(CURRENT_YEAR - FIRST_YEAR + 1, idx => FIRST_YEAR + idx);
export const REPEQ_ADMIN_YEARS = times(CURRENT_YEAR - FIRST_YEAR_REPEQ + 1, idx => FIRST_YEAR_REPEQ + idx);
Expand Down

0 comments on commit 13094f5

Please sign in to comment.