Commit Graph

501 Commits

Author SHA1 Message Date
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
Matthieu Haineault
ad49a2265a feat(shifts): added a new route to enable shift creation/modification/deleting using the timesheets_approval page 2025-12-22 11:12:14 -05:00
Matthieu Haineault
ed7e013a71 clean(logs): removed debugging logs 2025-12-19 16:46:19 -05:00
Matthieu Haineault
447d968f59 feat(pay-period): added is_active to payload to filter inactive employee from the timesheets_approval page 2025-12-19 16:25:39 -05:00
Matthieu Haineault
c0d00d0ca9 feat(pay-period): added is_active to payload to filter inactive employee from the timesheets_approval page 2025-12-19 16:16:35 -05:00
Matthieu Haineault
52c2e5f70c Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-19 15:46:14 -05:00
Matthieu Haineault
581a4252cd fix(display): fix the display of amount, mileage and hours to use only 2 decimals and no more 2025-12-19 15:46:10 -05:00
072855f34d Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-19 15:39:24 -05:00
d9d9de759f fix(auth): fix /me route to properly send user data, now also includes module accesses for user. 2025-12-19 15:39:18 -05:00
Matthieu Haineault
681779345e fix(access): access troubleshooting 2025-12-19 12:43:11 -05:00
Matthieu Haineault
027dd48efb fix(module-access): fix module access for none-admin users 2025-12-19 12:23:55 -05:00
Matthieu Haineault
40fe965a6d fix(redirect): fix url redirect 2025-12-19 10:16:30 -05:00
Matthieu Haineault
a40af6a4d0 fix():small fix to redirect 2025-12-19 10:11:29 -05:00
Matthieu Haineault
62bad94343 feat(redirect_url): moved redirect url to .env file 2025-12-19 10:00:50 -05:00
Matthieu Haineault
3a0dc4c1ce feat(troubleshooting): roll-back du dernier commit et clean de debugg comments 2025-12-19 09:54:51 -05:00
Matthieu Haineault
a80dd357a3 feat(debugging): temporary guard disable and comment for troubleshooting dockerization of the staging app. to be rolled-back before prod 2025-12-19 09:24:26 -05:00
Matthieu Haineault
ecc8e2a9f6 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-19 08:53:22 -05:00
Matthieu Haineault
4c88a72a2d feat(help): finish setup for help/home-page menu 2025-12-19 08:53:19 -05:00
e67ed22bad fix(presets): fix minor issue with adding a daily preset 2025-12-17 13:28:14 -05:00
Matthieu Haineault
4f0f5ae30f feat(presets): added a route to apply a preset to a single day 2025-12-17 11:28:35 -05:00
21dfe60548 fix(timesheet): minor fix to apply preset logic, less iteration 2025-12-17 10:50:49 -05:00
Matthieu Haineault
08679b7db3 feat(help): set-up function to build personnalized help in the help section 2025-12-17 08:42:32 -05:00
Matthieu Haineault
b9c838d3e5 fix(access): fix module access create 2025-12-15 09:26:59 -05:00
Matthieu Haineault
4b0a45adcc fix(access): fix module access update 2025-12-15 09:26:17 -05:00
049571c08d Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-15 09:02:13 -05:00
0c77df41c6 fix(pay-period): minor fix to pay period handling, was returning pay-year of date from request rather than pay-year from pay period in db 2025-12-15 09:01:37 -05:00
Matthieu Haineault
3c773df376 fix(module_access): fix module access validation 2025-12-15 09:00:27 -05:00
Matthieu Haineault
b01506f013 fix(schedule_preset): added a param to orderBy to sort shifts by start_date as well as week_day 2025-12-12 14:53:56 -05:00
Matthieu Haineault
6f3acde71b fix(preset): added order by start_time 2025-12-12 14:31:01 -05:00
Matthieu Haineault
e96cb91304 clean(comments): removed debug comment 2025-12-12 13:59:23 -05:00
Matthieu Haineault
9a8dcbccc3 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-12 13:35:39 -05:00
Matthieu Haineault
762677b7b1 clean(comments): removed debugg comments 2025-12-12 13:35:36 -05:00
01e407f803 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-12 13:33:31 -05:00
93b974c160 fix(presets): simplify process of updating employee profiles with deleted preset.
Also removed superfluous prints that are no longer required in certain modules (testing)
2025-12-12 13:33:27 -05:00
Matthieu Haineault
f9a247d9f1 feat(csv): ajusted csv logics and minor fixes to employees 2025-12-12 13:26:09 -05:00
Matthieu Haineault
a2fc68e9c0 fix(prisma): fix an error from a db pull that changed an Int into a BigInt 2025-12-12 08:42:31 -05:00
Matthieu Haineault
313a1e5fb6 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-12-12 08:25:35 -05:00
Matthieu Haineault
157a7908be refactor(csv): ajusted extract logics 2025-12-12 08:25:31 -05:00
Nic D.
16a8ed41c4 Merge branch 'main' of https://git.targo.ca/Targo/targo_backend 2025-12-11 17:00:39 -05:00
Nic D.
3b01aa3748 fix(create-employee): date was passed directly as string, fixed to pass date object. 2025-12-11 17:00:20 -05:00
Matthieu Haineault
be957d8180 fix(schedule_preset) : added a check to remove preset_id for employees using the newly deleted preset 2025-12-11 12:02:34 -05:00
Matthieu Haineault
acc128e5ea fix(presets): removed name from where clause to find the preset 2025-12-11 10:11:33 -05:00
Matthieu Haineault
71aeeb7133 refactor(employees): added preset_id to dto 2025-12-11 09:26:58 -05:00
Nic D.
cb52089db8 fix(schedule-preset): adjust services to use consistent dto and field names (mix of shifts and preset_shifts) 2025-12-10 16:51:38 -05:00
Matthieu Haineault
b6132c8b35 feat(schedule-presets): added a service that applies a preset to an existing timesheet. did some cleaning in utils and dtos 2025-12-09 13:02:10 -05:00
Matthieu Haineault
74e16d7960 feat(migration): created a script to initialize preferences and modules access 2025-12-05 15:43:32 -05:00
491bd7022c feat(auth): add session table to prisma that will be used by express-session to store user session data 2025-12-05 11:33:10 -05:00