Skip to content

Commit

Permalink
fixed overtimereduction entitity
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Nov 29, 2023
1 parent 8cf4f0e commit 747e862
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/models/overtimeReduction.mocks.ts
Expand Up @@ -15,14 +15,14 @@ export const createOvertimeReductionMocks = ({
return {
id: index,
usersId: 0,
usersIdAdded: 1,
dateAdded: isoDateFromDateTime(faker.date.past()),
addedByUsersId: 1,
addedAt: isoDateFromDateTime(faker.date.past()),
date: isoDateFromDateTime(faker.date.past()),
note: faker.datatype.boolean() ? faker.lorem.sentences(2) : null,
hours: faker.datatype.number({
min: hoursMinMax[0],
max: hoursMinMax[1],
}),
createdAfterEndOfMonth: faker.datatype.boolean(),
};
});
};
8 changes: 4 additions & 4 deletions src/models/overtimeReduction.ts
Expand Up @@ -6,12 +6,12 @@ export type OvertimeReduction = {
/** The related employee's ID */
usersId: number;
/** The user who added the overtime reduction */
usersIdAdded: number;
addedByUsersId: number;
/** The date when the overtime reduction was added */
dateAdded: IsoDate;
addedAt: IsoDate;
/** The date when the overtime reduction was taken */
date: IsoDate;
/** Number of hours */
hours: number;
note: string | null;
// TODO: will probably be renamed
createdAfterEndOfMonth: boolean;
};

0 comments on commit 747e862

Please sign in to comment.