Commit Graph

176 Commits

Author SHA1 Message Date
Matthieu Haineault
6d17baf6c8 fix(prisma): fix prisma calls to match 7.3.0 versions 2026-02-05 11:52:46 -05:00
Matthieu Haineault
b8157b78d1 fix(PrismaClient): fix a bug where transactionClients where instantiated with the wrong Prisma imports 2026-02-05 11:31:47 -05:00
Matthieu Haineault
d9f0362cb9 fix(PrismaClient): fix the client generation. was overwriting previous entries. now create multiple instances = db amount 2026-02-04 15:24:36 -05:00
Matthieu Haineault
b269062816 fix(Prisma): Fix prisma queries around the whole app to match new structure of many instance of clients/services files. added scripts to manage more than one schema at a time 2026-02-04 14:13:06 -05:00
Matthieu Haineault
a3bdd41648 fix(prisma-client): modified imports in many files to match the new structure of the Prisma ORM. (where @prisma/client => prisma/generated/postgres/client). Added commented mariaDB variables to Dockerfile for future connections 2026-02-04 10:18:03 -05:00
Matthieu Haineault
8b9c2f7a86 feat(mariaDB): clean prisma MariaDB folders. re-organized it and added scripts command for easier generation and migration 2026-02-03 15:52:02 -05:00
Matthieu Haineault
25e9200c41 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/prisma/MariaDB 2026-02-03 11:42:02 -05:00
Matthieu Haineault
d7eacd127c feat(prisma): setup for including MariaDB with the new Prisma version 7.3.0 2026-02-03 11:40:08 -05:00
Nic D
83f5da2e4a fix(preset): fix issue where notification of creation was being sent for weekly preset application 2026-01-27 16:33:27 -05:00
Nic D
652bc1cba1 feat(presets): add possibility for user with right permissions to apply presets to employee timesheets 2026-01-27 16:12:28 -05:00
Nic D
68883b84e7 feat(pay-period): add SSE for timesheet-approval when employees update timesheet and a user is on timesheet-approval 2026-01-21 10:21:58 -05:00
646cb58e98 feat(pay-period): begin integration of SSE route for live event-based feedback on timesheet update 2026-01-20 16:28:17 -05:00
Nic D
63cc2a4458 fix(chatbot): changed session id to be unique with user email instead of using testing for everything 2026-01-15 10:17:45 -05:00
Nic D
7d492a2817 fix(timesheet): remove lines that were interfering with weekly overtime calculations. 2026-01-15 09:37:52 -05:00
Nic D
8410a3f7c6 fix(chatbot): change post address, object structure, handling of response 2026-01-14 16:06:50 -05:00
Matthieu Haineault
e259851b87 clean(banking): removed debug comments 2026-01-14 10:38:49 -05:00
Matthieu Haineault
8a2e67cbc8 fix(banking): fix delete options of withdraw_banking hours 2026-01-14 10:37:46 -05:00
Matthieu Haineault
1abc377891 fix(banking): fix an issue where the banked hours would not be updated as intended 2026-01-14 08:20:27 -05:00
6c89acbe0e Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-13 16:27:31 -05:00
fa64b7d919 feat(timesheet-approval): add overtime calculation for overview and timesheet details 2026-01-13 16:27:27 -05:00
Matthieu Haineault
560bb9cc3c fix(banking_hours): added modifier of 1.5 to ensure real display and manipulations of banked hours 2026-01-13 14:07:44 -05:00
Matthieu Haineault
dda1592871 clean(pre-prod): did some cleaning 2026-01-12 09:54:38 -05:00
Matthieu Haineault
5d6f6bfd0a feat(paid_time_off): added last_updated to manipulations bank updates 2026-01-12 07:20:07 -05:00
7e9dbe5b3d fix(employees): change DTOs to accomodate lack of last_update date 2026-01-09 12:54:57 -05:00
6acb853c69 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-09 12:12:33 -05:00
5ab1144d2c fix(employees): add second employeeDetailedUpsertDto to separate from GET dto that only requires partial PaidTimeOff access 2026-01-09 12:12:27 -05:00
Matthieu Haineault
25c9e0a673 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-09 12:01:11 -05:00
Matthieu Haineault
4c7c596d02 refactor(paid-time-off): refactor functions to use paid-time-off service instead. 2026-01-09 12:01:06 -05:00
791b3aacb9 feat(employees): add paid time off to properties sent to employee list queries (some partial, full when editing) 2026-01-09 11:39:30 -05:00
Matthieu Haineault
c03ea4cb6f Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-09 08:00:14 -05:00
Matthieu Haineault
70575e1772 feat(banking_hours): added a function to add or take banked_hours 2026-01-09 08:00:08 -05:00
c43d7649ca feat(approvals): add functionality to return weekly hours breakdown 2026-01-09 07:44:15 -05:00
Matthieu Haineault
41efccac17 fix(migration): commented migration scripts 2026-01-08 14:20:05 -05:00
Matthieu Haineault
5b778943a1 feat(paid_time-off): worked on vacation service, implemented vacation business logic inside shifts creation and did a migration 2026-01-08 12:13:14 -05:00
Matthieu Haineault
bae8a037f7 fix(business-logics): small ajustments 2026-01-07 15:46:29 -05:00
Matthieu Haineault
6cbf37ed86 fix(csv): added real paid hours for csv download 2026-01-07 09:02:06 -05:00
Matthieu Haineault
e10a7da1e4 feat(csv and expenses): added employee_email to update expense and added call to holiday service to display the right amount of hour paid for holiday shifts inside csv(needs more work. see next commit) 2026-01-07 08:42:52 -05:00
Matthieu Haineault
70aefdab73 fix(migration): fix some migration problems from legacy db 2026-01-06 15:04:41 -05:00
e3006b9b82 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2026-01-06 07:34:42 -05:00
53ec64ba1e refactor(sick-leave): remake methods to calculate and update sick leave available 2026-01-06 07:34:26 -05:00
Matthieu Haineault
379104147c fix(csv): added overtime calculation and requalification of regular time unto overtime when daily or weekly maxes are reached 2026-01-06 07:12:24 -05:00
17f06e7867 refactor(timesheet): add boolean property to indicate if user has schedule preset or not, used to display set preset buttons on timesheet. 2026-01-02 17:27:29 -05:00
6f9ba599a0 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-29 08:57:11 -05:00
7eb1471edb fix(pay-periods): specify that is_approved can be null in controller, to not confuse false with null 2025-12-29 08:56:22 -05:00
Nic D.
6adbcad352 ???(???): holiday work, forget what it was. Probably related to timesheet approval and its filters 2025-12-29 06:53:16 -05:00
Matthieu Haineault
d613d97a1a fix(pay-period): small fix to query 2025-12-23 14:22:28 -05:00
Matthieu Haineault
264ee101bf refactor(pay-period): refactor buildOverview and cleaned service/controller 2025-12-23 14:17:37 -05:00
Matthieu Haineault
15d7821314 fix(pay-period): removed is_remote from payload and added dynamic returns of timesheet.is_approved 2025-12-23 07:18:01 -05:00
da74a93fa0 console.log 2025-12-22 14:10:26 -05:00
58baaade5d refactor(pay-periods): refactored bulkApprove for crew to instead toggle approval of all shifts and expenses of a given employee 2025-12-22 14:09:35 -05:00