Commit Graph

213 Commits

Author SHA1 Message Date
Matthieu Haineault
2b04c3151d fix(csv): small fix on the shift type checking 2026-03-17 15:17:24 -04:00
Matthieu Haineault
b1069c0add fix(holiday): fixed the valid codes for the holiday calculations 2026-03-17 14:42:17 -04:00
Matthieu Haineault
d004fa9fa2 fix(csv): added evening, emergency, holiday and vacation hours in the overtime calculations 2026-03-17 14:35:55 -04:00
Matthieu Haineault
b25558d71c fix(bank_code): changed G56 for G140 2026-03-17 10:49:35 -04:00
Matthieu Haineault
1dd57829ec fix(csv): minor fix 2026-03-17 08:01:15 -04:00
Matthieu Haineault
b80c424441 fix(csv): removed the hour entries when the value is 0.00 2026-03-17 07:52:18 -04:00
Matthieu Haineault
2a361cb35c fix(csv): removed the hour entries when the value is 0.00 2026-03-17 07:52:04 -04:00
Matthieu Haineault
69abbe54b5 fix(csv): fixed a situation where phantom overtime hours were added to the csv. the problem originated from a mix between consolidated rows and the DB data. 2026-03-16 14:19:22 -04:00
Nic D
20cefb66fe fix(timesheets): fix issue with expense amounts not tabulated properly 2026-03-16 09:52:18 -04:00
Matthieu Haineault
3624489c02 fix(csv): removed the expense entry of 0.00 when the row is of type hours 2026-03-16 07:58:42 -04:00
Nic D
4979f82e6f Merge branch 'main' of https://git.targo.ca/Targo/targo_backend 2026-03-13 15:21:12 -04:00
Nic D
5f4fb3594a fix(pay-period, timesheet): fix issue where overtime wasn't calculated properly.
Also fix issue where employee overviews would sometimes falsely return as approved if employee had no timesheets created yet. This is due to Array.prototype.every returning true on an empty array.
2026-03-13 15:21:04 -04:00
Matthieu Haineault
d2c7f262a4 fix(csv): removed the cumulation of sick days into a single row. 2026-03-13 14:52:01 -04:00
Matthieu Haineault
4b8f1e0f77 fix(CSV): fix the overtime calculation to ensures that daily overtime is not added on top of the weekly overtime. 2026-03-13 12:56:17 -04:00
Nic D.
aa68b5384b fix(expense): fix issue where timesheet id is not updated properly when expense changes week on update. 2026-03-11 16:42:18 -04:00
Nic D.
daf35d0e40 fix(pay-periods): fix error where mileage was not being returned correctly for overviews 2026-03-11 12:51:34 -04:00
Nic D
91fe8843b3 fix(expense): Fix issue where expenses were not properly calculating amount
Also add better permission handling when creating shifts or expenses for other users through timesheet-approval module
2026-03-10 16:44:08 -04:00
Nic D
6df3aa944d fix(pay-period): Fix issue where overviews would sometimes return approval false
Overviews would be flagged as not approved if there were no shifts nor expenses on the timesheets, but it needs to be approved not just for accounting purposes, but to lock the timesheets from retroactive modifications as well.
2026-03-09 09:28:22 -04:00
Matthieu Haineault
1f27baf100 fix(presets): small fix to schedule preset apply service 2026-02-27 13:39:16 -05:00
Matthieu Haineault
c427cc7718 reafactor(EsLint): Eslint corrections 2026-02-27 13:19:38 -05:00
Matthieu Haineault
368c5b1a2a Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/tickets 2026-02-27 10:13:19 -05:00
Matthieu Haineault
aa72651a67 refactor(EsLint): EsLint corrections 2026-02-27 10:09:24 -05:00
Nic D
b7cf7d7208 fix(expense): allow creation of expense with optionally-provided employee email 2026-02-24 08:31:24 -05:00
Nic D
2936b84b47 fix(paid-time-off): add expected daily hours to timesheet output. 2026-02-23 14:36:12 -05:00
Matthieu Haineault
a32d636b6e feat(tickets): added a service function to get tickets according to email or session email and ticket status 2026-02-20 05:29:22 -05:00
Nic D
c712e0f5db fix(exports): fix issue where bank code was not being properly verified, adjust sorting of results 2026-02-18 11:59:27 -05:00
Nic D
aa6109ff09 fix(shifts): fix issue where end time for paid time off shifts was not being calculated correctly. 2026-02-17 15:23:56 -05:00
Matthieu Haineault
ef969d3c42 fix(CSV): fix csv structure to match Desjardins 2026-02-16 09:36:13 -05:00
Nic D
a9637a93a6 BREAKING(csv-report): Trim shift and expense retrieval, up to calculateOvertime portion, logic requires rework 2026-02-13 16:05:59 -05:00
Matthieu Haineault
df390b41b6 fix(csv): started to fix csv structure to match desjardins needs 2026-02-12 15:14:44 -05:00
Matthieu Haineault
6a6a3187be fix(imports): fixed deprecated imports 2026-02-06 15:22:19 -05:00
Matthieu Haineault
047871fe35 fix(prisma): many small fixes due to prisma updated version 2026-02-06 15:03:14 -05:00
Matthieu Haineault
364219c267 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/matthieu/prisma/MariaDB 2026-02-06 14:41:08 -05:00
Nic D
afa8694e1e fix(sick-hours): fix issue where sicks hours are not properly being deducted nor reimbursed 2026-02-06 14:37:27 -05:00
Nic D
a4be488a0f fix(sick-hours): fix a single error in shift creation where sick hours check was being done with banked hours 2026-02-06 14:02:01 -05:00
Nic D
6d96311d98 refactor(e2e): remove old e2e workflow, no longer up to date, will need to create new one later(never?) 2026-02-05 15:00:52 -05:00
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
Nic D
2ec59e2ffb feat(paid-time-off): add methods and controller to pull paid time off for one employee 2026-02-05 08:00:54 -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