Commit Graph

228 Commits

Author SHA1 Message Date
Matthieu Haineault
2de8db6212 refactor(timesheets): dried findAll methods to centralize shareable methods 2025-10-10 11:34:39 -04:00
Matthieu Haineault
95786b9e37 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/setup/attachment/MatthieuH 2025-10-10 09:34:54 -04:00
Matthieu Haineault
9efdafb20f refactor(preferences & modules): changed type from boolean to Int so each preferences can have more than 2 options.
Also cleaned-up module imports/providers
2025-10-10 09:27:57 -04:00
Matthieu Haineault
6a4fbeb2c4 refactor(leave-requests): moved utils to shared file 2025-10-09 16:48:45 -04:00
Matthieu Haineault
71d86f7fed refactor(helpers): moved helpers to a shared file 2025-10-09 16:41:34 -04:00
Matthieu Haineault
78a335a47c fix(imports): ajusted imports for new ISOstring dates methods 2025-10-09 15:49:00 -04:00
Matthieu Haineault
af8ea95cc4 fix(shifts): changed UTC comparison for ISOString 2025-10-09 15:45:57 -04:00
Matthieu Haineault
1954d206a8 fix(dates): removed dates from L-R and P-P 2025-10-09 15:23:03 -04:00
Matthieu Haineault
4527b0e7f7 fix(shifts): clean 2025-10-09 15:22:34 -04:00
5a1017f82b fix(pay-period): change payload to send regular hours and other hours, rather than each individual shift type as a property 2025-10-09 15:17:02 -04:00
Matthieu Haineault
7c7edea768 feat(schedule-presets): created an apply service to auto-create shifts using presets 2025-10-09 08:40:20 -04:00
Matthieu Haineault
83792e596a feat(schedule_presets): module schedule_presets setup. Ajustments to seeders to match new realities 2025-10-08 16:45:37 -04:00
Matthieu Haineault
9b169d43c8 resolve mergre 2025-10-08 08:57:24 -04:00
Matthieu Haineault
fda95d3fc4 Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-10-08 08:57:04 -04:00
Matthieu Haineault
f6c5b2a73c refactor(shifts): refactor main upsert function to use shared utils and helpers 2025-10-08 08:54:43 -04:00
6254410f66 fix(expense): rename import to avoid confusion 2025-10-07 16:27:30 -04:00
Matthieu Haineault
cc310e286d feat(expenses): method implementation to show a list of all expenses made by an employee using email, year and period_no 2025-10-07 13:51:35 -04:00
Matthieu Haineault
a750f79107 fix(timesheets): fix backend return to send an array of expenses with total mileage and total expense 2025-10-07 12:00:52 -04:00
Matthieu Haineault
4d905c905e Merge branch 'main' of git.targo.ca:Targo/targo_backend 2025-10-07 10:28:16 -04:00
Matthieu Haineault
0fc80f50f9 fix(timesheets): minor fix 2025-10-07 10:28:13 -04:00
e575b9bd54 Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack 2025-10-07 10:24:25 -04:00
Matthieu Haineault
c58e8db59f fix(timesheets: minor fix 2025-10-07 10:07:47 -04:00
Matthieu Haineault
9821b81afd fizx(archive): fix import services 2025-10-07 09:55:44 -04:00
Matthieu Haineault
791a953744 fix(timesheets): modified returns to show total expense, total mileage and an array of all expenses per date 2025-10-07 09:49:42 -04:00
c0569d8efd Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack
Don't know whyyyy
2025-10-07 08:20:44 -04:00
Matthieu Haineault
57b74b1726 fix(modules): deprecate old methods and extract utils and helpers. created archival services. 2025-10-07 08:18:46 -04:00
406233b2a3 Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack
did something it didn't like, not sure whadid something it didn't like,
not sure whatt
2025-10-06 16:06:38 -04:00
fa845cf6e6 fix(timesheet): add some quality of life to get required info, employee name, change pay period response from week 1 and 2 to array of weeks 2025-10-06 16:06:26 -04:00
Matthieu Haineault
79c5bec0ee fix(controller): commented deprecated or unsued methods of controllers 2025-10-06 15:44:07 -04:00
Matthieu Haineault
caf03d8d68 fix(leave-requests): fix depencies for the Leave-Requests Module 2025-10-06 14:00:25 -04:00
Matthieu Haineault
79153c6de3 feat(leave-requests): implementation of vacation, sick and holiday leave-requests. 2025-10-06 12:15:51 -04:00
Matthieu Haineault
d8bc05f6e2 feat(preferences): setup for prefrences module which allows a user to manage dark mode, notifications, lefty mode for phone user and a lang switch (en, fr) 2025-10-03 14:03:09 -04:00
Matthieu Haineault
3984540edb fix(leaves and expenses): import name fixes 2025-10-03 10:22:27 -04:00
Matthieu Haineault
10d4f11f76 feat(leave-request): added holiday shift's creation and CRUD for holiday leave-requests. 2025-10-03 09:38:09 -04:00
Matthieu Haineault
d36d2f922b feat(leave-request): added holiday shift's creation and CRUD for holiday leave-requests. 2025-10-03 09:37:42 -04:00
Matthieu Haineault
77f065f37f feat(expense): link expense with attachment. 2025-10-01 16:35:40 -04:00
Matthieu Haineault
f8f4ad5a83 fix(expenses): ajusted mileage logic 2025-10-01 10:02:52 -04:00
Matthieu Haineault
3b4dd9ddb5 fix(mock): small typo in mock datas 2025-09-30 11:12:46 -04:00
Matthieu Haineault
52114deb33 feat(expenses): upsert function for expenses 2025-09-30 10:43:48 -04:00
1c797c348a "refactor(timesheet): add full employee name to return data to display in timesheet approval employee details dialog header" 2025-09-26 11:40:04 -04:00
Matthieu Haineault
46deae63bc fix(holiday): minor valid_codes fix 2025-09-16 14:47:35 -04:00
5621f72342 Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack 2025-09-16 11:21:56 -04:00
bcf73927bd fix(payperiod): add minor fix to total hours calculated method 2025-09-16 11:20:50 -04:00
Matthieu Haineault
cc48584b99 feat(shifts): ajusted validations for create/update/delete shifts 2025-09-16 09:17:59 -04:00
Matthieu Haineault
f9931f99c8 feat(validationPipe): Global Exception Filter basic setup using APP_FILTER and APP_PIPE 2025-09-11 16:48:05 -04:00
Matthieu Haineault
ef4f6340d2 feat(shifts): added a master function to create/update/delete a single shift 2025-09-11 15:22:57 -04:00
Matthieu Haineault
125f443ec0 feat(timesheet): added comment and supervisor comment to payload of findAll 2025-09-10 16:20:37 -04:00
Matthieu Haineault
a343ace0b7 fix(pay-period): fix total_hours calculation 2025-09-09 10:24:53 -04:00
a3d4b0cef7 Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack
Why am I constantly getting these merge messages
2025-09-09 09:30:17 -04:00
Matthieu Haineault
6e1f5ce9a2 refactor(shifts_expenses): refactor description to comment to match frontend 2025-09-09 09:24:54 -04:00
8e25e939af Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack
Something something
2025-09-09 09:02:58 -04:00
Matthieu Haineault
8ef5c0ac11 feat(pay-periods): added total_hours and is_remote to payload 2025-09-09 09:01:33 -04:00
75f07aaf99 Merge branch 'main' of git.targo.ca:Targo/targo_backend into auth-session-fullstack 2025-09-09 08:28:43 -04:00
d45feb1aa0 fix(payperiod): add type to payload. 2025-09-09 08:21:27 -04:00
Matthieu Haineault
0fb6465c27 fix(timesheet): added is_remote 2025-09-09 08:19:50 -04:00
Matthieu Haineault
954411d995 refactor(shifts): added is_remote to track work from home shifts 2025-09-08 15:25:09 -04:00
Matthieu Haineault
dac53c6780 fix(timesheets): fix query to use helper instead of library function 2025-09-08 10:14:14 -04:00
Matthieu Haineault
4f7563ce9b feat(timesheet): added Post function to create a new shifts inside a timesheet 2025-09-04 15:14:48 -04:00
Matthieu Haineault
5063c1dfec fix(seeder): fix bank_codes for expenses seeder 2025-09-02 15:16:03 -04:00
Matthieu Haineault
93cf2d571b feat(timesheet): added getTimesheetByEmail 2025-09-02 14:29:00 -04:00
Matthieu Haineault
c170481f3b fix(pay-period): switch filters from categorie to type 2025-08-29 13:16:58 -04:00
Matthieu Haineault
c52de6ecb8 fix(seeds): fix timesheet seeds 2025-08-29 11:44:04 -04:00
Matthieu Haineault
18c1ce38be fix(timesheets): small typo to_num function 2025-08-29 11:17:24 -04:00
Matthieu Haineault
eefe82153f fix(findAll): fix loop for week_shifts 2025-08-29 11:03:59 -04:00
Matthieu Haineault
0516736fa2 refactor(timesheet): added shift types and expenses type data 2025-08-29 08:28:47 -04:00
Matthieu Haineault
ea76435f4f fix(seeder): fix seeders 2025-08-28 14:43:23 -04:00
Matthieu Haineault
213b68fb7d Merge branch 'dev/setup/modules/MatthieuH' of git.targo.ca:Targo/targo_backend 2025-08-28 14:03:52 -04:00
Matthieu Haineault
5b2377796a refactor(CSV): modify export csv to match checklist options 2025-08-28 13:33:31 -04:00
Matthieu Haineault
c336e024d5 Merge branch 'dev/setup/modules/MatthieuH' of git.targo.ca:Targo/targo_backend 2025-08-28 10:24:42 -04:00
Matthieu Haineault
994e02ba7f refactor(timesheets): refactored findAll to return more data 2025-08-28 10:22:19 -04:00
Matthieu Haineault
9bc5c41de8 refactor(timesheets): refactored findAll to return more data 2025-08-28 10:22:00 -04:00
Matthieu Haineault
13bc09c77e fix(customer): phone_number type fix 2025-08-26 13:23:54 -04:00
Matthieu Haineault
7b86b8c662 refactor(employee): switched phone_number type from number to string 2025-08-26 12:50:11 -04:00
Matthieu Haineault
35e2e38811 feat(attachments): setup Garbage Collector for attachments module 2025-08-25 16:42:05 -04:00
Matthieu Haineault
fe32081ed9 feat(attachments): setup AdminSearchDto, CronJobs for archival and display route via controller 2025-08-25 15:46:28 -04:00
Matthieu Haineault
a3c58fb0f5 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/setup/attachment/MatthieuH 2025-08-25 13:29:56 -04:00
Matthieu Haineault
72f6cc8a9e refactor(routes): ajusted routes on Patch functions 2025-08-25 13:14:19 -04:00
Matthieu Haineault
514f41df19 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/setup/attachment/MatthieuH 2025-08-25 08:16:34 -04:00
Matthieu Haineault
301d5f2c9d feat(timesheet): replaced findAll by getPeriodByQuery with year, period_no and email query params. 2025-08-25 08:07:48 -04:00
Matthieu Haineault
d58f4e392c feat(variants): setup variants of file types 2025-08-22 13:16:35 -04:00
Matthieu Haineault
2eadabbdb4 fix(Leave-Requests): small fix in Promises 2025-08-22 06:59:45 -04:00
Matthieu Haineault
bfe145854f fix(export csv): added a filter to check if item is approved 2025-08-21 16:27:17 -04:00
Matthieu Haineault
9a150715b0 refactor(leave-request): refactor to use email instead of employee ids 2025-08-21 15:00:40 -04:00
Matthieu Haineault
bdf6662374 feat(label): modified label of pay-periods 2025-08-21 10:07:04 -04:00
Matthieu Haineault
1155a58eac feat(label): modified label of pay-periods 2025-08-21 09:13:09 -04:00
Matthieu Haineault
5282406b7a feat(L-R): comments about future refactor 2025-08-21 08:16:31 -04:00
Matthieu Haineault
d1fe7868f9 refactor(variables): renamed variables to use snake_case 2025-08-20 15:33:48 -04:00
Matthieu Haineault
3c8c999bfe feat(approval): selected approval by bulk for pay-period using crew view. renamed variables to use snake_case 2025-08-20 15:33:17 -04:00
Matthieu Haineault
d44f8da99f feat(full_name): added employee full name for liste d'employés 2025-08-19 16:17:34 -04:00
Matthieu Haineault
220f5901dd refactor(pay-periods): removed employe_id from pay_load 2025-08-19 15:46:18 -04:00
Matthieu Haineault
f765a99273 refactor(pay-period): ajusted logics services and controller of model pay-periods 2025-08-19 14:49:47 -04:00
Matthieu Haineault
ae6ce4bf97 feat(pay-period): added email to Param of getCrewOverview 2025-08-19 09:37:53 -04:00
Matthieu Haineault
a23a6299dd refactor(module): refactored expenses and shifts approval to be made in batch iva timesheets 2025-08-19 08:44:36 -04:00
Matthieu Haineault
7a9adeec69 refactor(module): refactor employees, archives and pay-period to use email instead of id and switch pay-period's requests to transaction 2025-08-19 08:34:35 -04:00
Matthieu Haineault
fe87c36884 fix(supervisor): added is_supervisor column to employees, archives and mock seeds 2025-08-18 12:26:52 -04:00
Matthieu Haineault
4d2ed4714f fix(timesheet): removed magic number 2025-08-18 10:57:35 -04:00
Matthieu Haineault
30f7179fe6 feat(attachments): minor fix and try catch for attachments controller 2025-08-18 10:44:28 -04:00
Matthieu Haineault
e62b4cff1c feat(attachments): minor fix and try catch for attachments controller 2025-08-18 10:44:16 -04:00
Matthieu Haineault
2761b75f40 Merge branch 'main' of git.targo.ca:Targo/targo_backend into dev/setup/attachment/MatthieuH 2025-08-18 10:29:00 -04:00
Matthieu Haineault
c45284fd84 feat(attachments): attachments module with minor fixes to attachments prisma model. 2025-08-18 10:26:01 -04:00